}
private static final String CONTENT_CHARSET = "ISO-8859-1";
public void testConstructors() throws Exception {
new ContentLengthInputStream(new SessionInputBufferMockup(new byte[] {}), 10);
try {
new ContentLengthInputStream(null, 10);
fail("IllegalArgumentException should have been thrown");
} catch (IllegalArgumentException ex) {
// expected
}
try {
new ContentLengthInputStream(new SessionInputBufferMockup(new byte[] {}), -10);
fail("IllegalArgumentException should have been thrown");
} catch (IllegalArgumentException ex) {
// expected
}
}