void CheckEntity(IHttpEntity entity, MediaType httpContentType, string expectedContent)
 {
     entity.ContentType
         .Matches(httpContentType)
         .ShouldBeTrue();
     string actualContent = new StreamReader(entity.Stream).ReadToEnd();
     actualContent.ShouldBe(expectedContent);
 }