Assert.assertTrue(entity.getContent() instanceof ChunkedInputStream);
}
@Test
public void testChunkedTransferEncodingMustBeLast() throws Exception {
final SessionInputBuffer inbuffer = new SessionInputBufferMock("0\r\n", Consts.ASCII);
final HttpMessage message = new DummyHttpMessage();
// lenient mode
message.getParams().setBooleanParameter(CoreProtocolPNames.STRICT_TRANSFER_ENCODING, false);
message.addHeader("Content-Type", "unknown");