public void Can_call_JSON_Service_with_UTF8_BOM()
        {
            var dto = new TestContentType { Id = 1, Name = "Foo" };
            var json = dto.ToJson();
            var jsonBytes = json.ToUtf8Bytes();

            var bytes = new List<byte>(new byte[] { 0xEF, 0xBB, 0xBF });
            bytes.AddRange(jsonBytes);

            var mergedBytes = bytes.ToArray();

            var responseBytes = ListeningOn.AppendPath("testcontenttype")
                .PostBytesToUrl(mergedBytes, contentType: MimeTypes.Json);

            var responseJson = responseBytes.FromUtf8Bytes();
            var fromJson = responseJson.FromJson<TestContentType>();
            
            Assert.That(fromJson.Id, Is.EqualTo(dto.Id));
            Assert.That(fromJson.Name, Is.EqualTo(dto.Name));
        }
 public object Any(TestContentType request)
 {
     return request;
 }