@Test
public void testGenerateDelta_BaseCase() throws Exception {

  // Simple test of generating a patch with no changes.
  FileByFileV1DeltaGenerator generator = new FileByFileV1DeltaGenerator();
  ByteArrayOutputStream buffer = new ByteArrayOutputStream();
  try (TempFileHolder oldArchive = new TempFileHolder();
      TempFileHolder newArchive = new TempFileHolder()) {
    UnitTestZipArchive.saveTestZip(oldArchive.file);
    UnitTestZipArchive.saveTestZip(newArchive.file);
    generator.generateDelta(oldArchive.file, newArchive.file, buffer);
  }
  byte[] result = buffer.toByteArray();
  Assert.assertTrue(result.length > 0);
}