@Test
public void testMultiChunk() throws Exception {
final byte[] content = "12345678901234567890123456789012345678901234567890".getBytes();
final ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
final ByteOutput byteOutput = new ChunkyByteOutput(Marshalling.createByteOutput(byteArrayOutputStream), 10);
byteOutput.write(content);
byteOutput.flush();
final byte[] chunked = byteArrayOutputStream.toByteArray();
final ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(chunked);
final ByteInput byteInput = new ChunkyByteInput(Marshalling.createByteInput(byteArrayInputStream));