assertNotNull(entity.getContentType());
assertEquals("stuff", entity.getContentType().getValue());
}
public void testEntityContentEncoding() throws Exception {
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);