@Test
public void testWrite_NoneCompressed() throws IOException {

  // Test the case where there are no compression ranges at all.
  stream =
      new PartiallyCompressingOutputStream(
          Collections.<TypedRange<JreDeflateParameters>>emptyList(), outBuffer, 32768);
  byte[] input = new byte[] {1, 77, 66, 44, 22, 11};
  byte[] expected = input.clone();
  stream.write(input);
  stream.flush();
  Assert.assertArrayEquals(expected, outBuffer.toByteArray());
}