@Test(expected=ProtocolException.class)
public void testEntityWithInvalidContentLength() throws Exception {

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