@Test
public void testWriteAll_Uncompressed() throws IOException {

  byte[] expectedBytes = new byte[] {1, 2, 3, 4, 5};
  stream.pipe(new ByteArrayInputStream(expectedBytes), Mode.COPY);
  Assert.assertArrayEquals(expectedBytes, outBuffer.toByteArray());
}