### Question:
FileUtils { public static void unzip(File file, String target) throws IOException { java.util.zip.ZipFile zipFile = new ZipFile(file); try { Enumeration<? extends ZipEntry> entries = zipFile.entries(); while (entries.hasMoreElements()) { ZipEntry entry = entries.nextElement(); File entryDestination = new File(target, entry.getName()); if (entry.isDirectory()) { entryDestination.mkdirs(); } else { entryDestination.getParentFile().mkdirs(); InputStream in = zipFile.getInputStream(entry); OutputStream out = new FileOutputStream(entryDestination); IOUtils.copy(in, out); IOUtils.closeQuietly(in); out.close(); } } } finally { zipFile.close(); } }  static void unzip(File file, String target); static void gunzip(File file, String target); static List<Path> splitFile(final String fileName,final String target, final int mBperSplit);  }### Answer:
@Test public void unzip() throws IOException { final URL resource = Thread.currentThread().getContextClassLoader().getResource("./soc-LiveJournal1.txt.zip"); FileUtils.gunzip(new File(resource.getFile()),System.getProperty("user.dir")+"/target/unZipped.txt"); final File file = new File(System.getProperty("user.dir") + "/target/unZipped.txt"); Assert.assertTrue(file.exists()); Assert.assertTrue(file.getTotalSpace()>0); }