@Test
public void testBasics() throws IOException {
final String correct = "1234567890123456";
final InputStream in = new ContentLengthInputStream(
new SessionInputBufferMock(correct, Consts.ISO_8859_1), 10L);
final ByteArrayOutputStream out = new ByteArrayOutputStream();
final byte[] buffer = new byte[50];
int len = in.read(buffer, 0, 2);
out.write(buffer, 0, len);