@Test
public void testExplainPatch_CompressedBytesChanged_UncompressedUnchanged() throws Exception {

  byte[] oldBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A1_LEVEL_6));
  byte[] newBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A1_LEVEL_9));
  save(oldBytes, oldFile);
  save(newBytes, newFile);
  PatchExplainer explainer = new PatchExplainer(null, null);
  List<EntryExplanation> explanations = explainer.explainPatch(oldFile, newFile);
  // The compressed bytes changed, but the uncompressed bytes are the same. Thus the patch size
  // should be zero, because the entries are actually identical in the delta-friendly files.
  // Additionally no diffing or compression should be performed.
  EntryExplanation expected =
      new EntryExplanation(
          path(ENTRY_A1_LEVEL_9), false, RecommendationReason.COMPRESSED_BYTES_CHANGED, 0L);
  checkExplanation(explanations, expected);
}