@Test
public void testWriteAll_Compressed_NoWrapFalse() throws IOException {

  UnitTestZipEntry entry = UnitTestZipArchive.makeUnitTestZipEntry("/foo", 6, "frobozz", null);
  // Make a compressor with nowrap set to *false* (unusual) and pump the uncompressed entry
  // content through it.
  DeflateCompressor compressor = new DeflateCompressor();
  compressor.setNowrap(false);
  ByteArrayOutputStream compressBuffer = new ByteArrayOutputStream();
  compressor.compress(
      new ByteArrayInputStream(entry.getUncompressedBinaryContent()), compressBuffer);
  // Now use the compressed data as input to the PartiallyUncompressingPipe.
  stream.pipe(new ByteArrayInputStream(compressBuffer.toByteArray()), Mode.UNCOMPRESS_WRAPPED);
  Assert.assertArrayEquals(entry.getUncompressedBinaryContent(), outBuffer.toByteArray());
}