@Test
public void testEntityWithChunkTransferEncoding() throws Exception {

    final ContentLengthStrategy lenStrategy = new DefaultContentLengthStrategy();
    final HttpMessage message = new TestHttpMessage();
    message.addHeader("Transfer-Encoding", "Chunked");
    Assert.assertEquals(ContentLengthStrategy.CHUNKED, lenStrategy.determineLength(message));
}