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