### Question:
ZipUtils { public static boolean isZipFile(File zipFile) { try { ZipFile zf = new ZipFile(zipFile); boolean isZip = zf.getEntries().hasMoreElements(); zf.close(); return isZip; } catch (IOException e) { return false; } } private  ZipUtils(); static File zip(List<String> fileNames, String zipPath); static File zip(List<String> fileNames, String zipPath, String encoding); static List<String> unzip(final File zipFile, final String destination); static List<String> unzip(final File zipFile, final String destination, String encoding); static boolean isZipFile(File zipFile);  }### Answer:
@Test(dependsOnMethods = "testZip") public void isZip() throws Exception { File f = new File(getZipTarget()); assertTrue(ZipUtils.isZipFile(f)); f = new File(getSource()); assertFalse(ZipUtils.isZipFile(f)); }