public void unzip(ZipInputStream zipInputStream, File destDir) throws IOException {
        try(ZipInputStream zis = zipInputStream) {
            destDir.mkdirs();
            ZipEntry zipEntry = zis.getNextEntry();
            while (zipEntry != null) {
                extractTo(zipEntry, zis, destDir);
                zipEntry = zis.getNextEntry();
            }
        }
    }
@Test
    void shouldThrowUpWhileTryingToUnzipIfAnyOfTheFilePathsInArchiveHasAPathContainingDotDotSlashPath() throws URISyntaxException, IOException {
        try {
            zipUtil.unzip(new File(getClass().getResource("/archive_traversal_attack.zip").toURI()), destDir);
            fail("squash.zip is capable of causing archive traversal attack and hence should not be allowed.");
        } catch (IllegalPathException e) {
            assertThat(e.getMessage()).isEqualTo("File ../2.txt is outside extraction target directory");
        }
    }