// lenient mode
message.getParams().setBooleanParameter(CoreProtocolPNames.STRICT_TRANSFER_ENCODING, false);
message.addHeader("Content-Type", "unknown");
message.addHeader("Transfer-Encoding", "identity, chunked");
message.addHeader("Content-Length", "plain wrong");
assertEquals(ContentLengthStrategy.CHUNKED, lenStrategy.determineLength(message));
// strict mode
message.getParams().setBooleanParameter(CoreProtocolPNames.STRICT_TRANSFER_ENCODING, true);
assertEquals(ContentLengthStrategy.CHUNKED, lenStrategy.determineLength(message));