@Test
public void testWrite_AllCompressed() throws IOException {

  // Test the case where a single compression range covers the entire input
  TypedRange<JreDeflateParameters> range =
      new TypedRange<JreDeflateParameters>(
          0, ENTRY1.getUncompressedBinaryContent().length, PARAMS1);
  stream =
      new PartiallyCompressingOutputStream(Collections.singletonList(range), outBuffer, 32768);
  stream.write(ENTRY1.getUncompressedBinaryContent());
  stream.flush();
  Assert.assertArrayEquals(ENTRY1.getCompressedBinaryContent(), outBuffer.toByteArray());
}