@Test
public void testEntityWithContentLength() throws Exception {

    final ContentLengthStrategy lenStrategy = new DefaultContentLengthStrategy();
    final HttpMessage message = new TestHttpMessage();
    message.addHeader("Content-Length", "100");
    Assert.assertEquals(100, lenStrategy.determineLength(message));
}