@Test
public void testWrite_Nothing() throws IOException {

  // Test the case where there are no compression ranges at all and nothing is written.
  stream =
      new PartiallyCompressingOutputStream(
          Collections.<TypedRange<JreDeflateParameters>>emptyList(), outBuffer, 32768);
  byte[] input = new byte[] {};
  stream.write(input);
  stream.flush();
  stream.close();
  Assert.assertArrayEquals(input, outBuffer.toByteArray());
}