@Test
public void testZipExtractor() throws IOException {

    File zipFileFolder = temporaryFolder.newFolder();
    StringBuilder sb = new StringBuilder();
    sb.append("Test String");
    File zipFile = zipFileFolder.toPath().resolve("zipFile.zip").toFile();
    try (FileOutputStream fos = new FileOutputStream(zipFile);
         ZipOutputStream out = new ZipOutputStream(fos)) {
        ZipEntry e = new ZipEntry("testText.txt");
        out.putNextEntry(e);
        byte[] data = sb.toString().getBytes();
        out.write(data, 0, data.length);
        out.closeEntry();
    }
    File unzipFolder = temporaryFolder.newFolder();
    ZipExtractor.extractAll(zipFile, unzipFolder);
    assertThat(unzipFolder.list()).contains("testText.txt");
    assertThat(Files.readAllLines(Paths.get(unzipFolder.toString(), "testText.txt"))).containsExactly("Test String");
}