ContentLengthStrategy lenStrategy = new LaxContentLengthStrategy();
HttpMessage message = new HttpMessageMockup();
// lenient mode
message.getParams().setBooleanParameter(CoreProtocolPNames.STRICT_TRANSFER_ENCODING, false);
message.addHeader("Content-Type", "unknown");
message.addHeader("Content-Length", "0");
message.addHeader("Content-Length", "0");
message.addHeader("Content-Length", "1");
assertEquals(1, lenStrategy.determineLength(message));