@Test
@SuppressWarnings("EqualsIncompatibleType") // For ErrorProne
public void testEquals() {

  Assert.assertEquals(defaultEntry, defaultEntry);
  MinimalZipEntry clonedDefaultEntry =
      new MinimalZipEntry(
          COMPRESSION_METHOD,
          CRC32,
          COMPRESSED_SIZE,
          UNCOMPRESSED_SIZE,
          FILE_NAME_BYTES,
          GENERAL_PURPOSE_BIT_FLAG_11,
          FILE_OFFSET_OF_LOCAL_ENTRY);
  Assert.assertEquals(defaultEntry, clonedDefaultEntry);
  for (MinimalZipEntry mutation : allMutations) {
    Assert.assertNotEquals(defaultEntry, mutation);
  }
  Assert.assertFalse(defaultEntry.equals(null));
  Assert.assertFalse(defaultEntry.equals("foo"));
}