assertEquals('\n', rawdata[18]);
}
public void testChunkedOutputStreamLargeChunk() throws IOException {
HttpDataTransmitterMockup buffer = new HttpDataTransmitterMockup();
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]);