### Question:
ZipArchive implements Closeable { public void addToArchive(File fileToZip, String fileName) throws IOException { addToArchive(fileToZip, fileName, new FileFilter() { @Override public boolean accept(File f) { return true; } }); } ZipArchive(File artifact); @Override void close(); void addToArchive(File fileToZip, String fileName); void addToArchive(File fileToZip, String fileName, FileFilter ff); static File unzip(File in, File out);  }### Answer:
@Test public void addDuplicate() throws Exception { ZipArchive archive = new ZipArchive(new File("target/test.zip")); archive.addToArchive(new File("src/test/resources/vdb-file.txt"), "vdb-file.txt"); archive.addToArchive(new File("src/test/resources/vdb-file.txt"), "vdb-file.txt"); }