Assert.assertEquals('\n', rawdata[18]);
}
@Test
public void testChunkedOutputStreamLargeChunk() throws IOException {
SessionOutputBufferMock buffer = new SessionOutputBufferMock();
ChunkedOutputStream out = new ChunkedOutputStream(buffer, 2);
out.write(new byte[] {'1', '2', '3', '4'});
out.finish();
out.close();
byte [] rawdata = buffer.getData();
Assert.assertEquals(14, rawdata.length);
Assert.assertEquals('4', rawdata[0]);
Assert.assertEquals('\r', rawdata[1]);
Assert.assertEquals('\n', rawdata[2]);