@Test
public void testDirectoryZipOutputStream() throws IOException {

    File outputStreamFile = File.createTempFile("dirzip-output", null);
    FileOutputStream fileOutputStream = new FileOutputStream(outputStreamFile);
    DirectoryZipOutputStream directoryZipOutputStream = new DirectoryZipOutputStream(outputDirectory, fileOutputStream);
    createDirectoryContent(directoryZipOutputStream, "", 3, 3, 0, 4);
    directoryZipOutputStream.close();
    fileOutputStream.close();
    Assert.assertTrue("No write to the output stream should happen !", outputStreamFile.length() == 0);
    outputStreamFile.delete();
}