### Question:
FileOperation { public static void uncompress(Path uncompressedFile, Path targetDir) throws IOException { checkFileExistsAndReadable(uncompressedFile); if (Files.exists(targetDir)) { targetDir.toFile().delete(); } else { FileUtils.createDirectories(targetDir); } ZipFile zipFile = new ZipFile(uncompressedFile.toFile()); Enumeration emu = zipFile.entries(); try { while (emu.hasMoreElements()) { ZipEntry entry = (ZipEntry) emu.nextElement(); if (entry.isDirectory()) { FileUtils.createDirectories(new File(targetDir.toFile(), entry.getName()).toPath()); continue; } BufferedInputStream bis = new BufferedInputStream(zipFile.getInputStream(entry)); File file = new File(targetDir.toFile() + File.separator + entry.getName()); File parent = file.getParentFile(); if (parent != null && (!parent.exists())) { FileUtils.createDirectories(parent.toPath()); } FileOutputStream fos = new FileOutputStream(file); BufferedOutputStream bos = new BufferedOutputStream(fos, BUFFER); byte[] buf = new byte[BUFFER]; int len; while ((len = bis.read(buf, 0, BUFFER)) != -1) { fos.write(buf, 0, len); } bos.flush(); bos.close(); bis.close(); } } finally { zipFile.close(); } }  static boolean deleteDir(File file); static void uncompress(Path uncompressedFile, Path targetDir); static String getNetFileSizeDescription(long size); static long getFileSizes(File f); static long getZipPathFileSize(ZipFile zipFile, ZipEntry zipEntry); static void copyFileUsingStream(File source, File dest); static String getFileSimpleName(ZipPath zipPath); static String getFileSuffix(ZipPath zipPath); static String getParentFromZipFilePath(String zipPath); static String getNameFromZipFilePath(String zipPath); static String getFilePrefixByFileName(String fileName);  }### Answer:
@Test public void testUnZip() throws IOException { File aabFile = loadResourceFile("demo/demo.aab"); Path unzipDirPath = getTempDirPath(); Path targetDir = new File(getTempDirPath().toFile(), "/aab").toPath(); FileOperation.uncompress(aabFile.toPath(), targetDir); System.out.println("testUnZip method coast:"); FileOperation.uncompress(aabFile.toPath(), unzipDirPath); }