@Test
public void testExplainPatch_NewFile() throws Exception {

  byte[] oldBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A1_LEVEL_6));
  byte[] newBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_B_LEVEL_6));
  save(oldBytes, oldFile);
  save(newBytes, newFile);
  FakeCompressor fakeCompressor =
      new FakeCompressor(ENTRY_B_LEVEL_6.getCompressedBinaryContent());
  PatchExplainer explainer = new PatchExplainer(fakeCompressor, null);
  List<EntryExplanation> explanations = explainer.explainPatch(oldFile, newFile);
  EntryExplanation expected =
      new EntryExplanation(
          path(ENTRY_B_LEVEL_6),
          true, // isNew
          null, // recommendation reason (null because the file is new)
          FakeCompressor.OUTPUT.length());
  checkExplanation(explanations, expected);
}