HttpDataReceiver datareceiver = new HttpDataReceiverMockup(new byte[] {'0'});
HttpMessage message = new HttpMessageMockup();
message.addHeader(new Header("Content-Encoding", "what not"));
EntityDeserializer entitygen = new DefaultEntityDeserializer();
HttpEntity entity = entitygen.deserialize(datareceiver, message);
assertNotNull(entity);
assertNotNull(entity.getContentEncoding());
assertEquals("what not", entity.getContentEncoding().getValue());
}