assertNotNull(outstream);
assertTrue(outstream instanceof ContentLengthOutputStream);
}
public void testEntityWithInvalidContentLength() throws Exception {
SessionOutputBuffer datatransmitter = new SessionOutputBufferMockup();
HttpMessage message = new HttpMessageMockup();
message.addHeader("Content-Length", "whatever");
EntitySerializer entitywriter = new EntitySerializer(
new StrictContentLengthStrategy());