### Question:
ZipUtil { public List<String> listEntries(File zipsource) { List<String> files = new ArrayList<String>(); try { ZipFile zipFile = new ZipFile(zipsource); setCharset(zipFile); @SuppressWarnings("unchecked") List<FileHeader> fileHeaders = zipFile.getFileHeaders(); for (FileHeader fileHeader : fileHeaders) { files.add(fileHeader.getFileName()); } } catch (Throwable e) { logError(e.getMessage()); } return files; } ZipUtil();  ZipUtil(String charset); List<ZipEntry> listZipEntries(File zipsource); List<String> listEntries(File zipsource); boolean unzip(String zipsource, String target); byte[] getEntryBytes(File zipsource, String entry); InputStream getEntryStream(File zip, String entry); String getEntryContent(File zip, String entry); static void addEntry(File zip, String entry, InputStream content); void zipFile(File src, File dest); void zipFolder(File inFolder, File outFile); String getFileNameCharset(); void setFileNameCharset(String fileNameCharset);  }### Answer:
@Test public void testListEntries() throws IOException { File file = new File("target/test.zip"); FileUtil.copyResource("/test.zip", file); ZipUtil zipUtil = new ZipUtil(); List<String> entries = zipUtil.listEntries(file); Assert.assertEquals(3, entries.size()); Assert.assertTrue(entries.contains("impex.xsd")); }