public void testEntityWithIdentityTransferEncoding() throws Exception {
ContentLengthStrategy lenStrategy = new StrictContentLengthStrategy();
HttpMessage message = new HttpMessageMockup();
message.addHeader("Transfer-Encoding", "Identity");
assertEquals(ContentLengthStrategy.IDENTITY, lenStrategy.determineLength(message));
}
public void testEntityWithInvalidTransferEncoding() throws Exception {
ContentLengthStrategy lenStrategy = new StrictContentLengthStrategy();
HttpMessage message = new HttpMessageMockup();