@Test
public void testIsDeflateCompressed() {

  // Compression method == 8, and uncompressed size != compressed size
  Assert.assertTrue(defaultEntry.isDeflateCompressed());
  // Compression method == 8, but uncompressed size == compressed size (ie, STOR'ed entry)
  MinimalZipEntry stored =
      new MinimalZipEntry(
          COMPRESSION_METHOD,
          CRC32,
          1000,
          1000,
          FILE_NAME_BYTES,
          GENERAL_PURPOSE_BIT_FLAG_11,
          FILE_OFFSET_OF_LOCAL_ENTRY);
  Assert.assertFalse(stored.isDeflateCompressed());
  // Compression method != 8 (obviously not deflate)
  Assert.assertFalse(alteredCompressionMethod.isDeflateCompressed());
}