@Test
public void should_zip_a_directory_and_filter_out_unaccepted_subdirectories() throws Exception {

    String destinationInZip = "destinationInZip";
    zipper.addDirectoryToZip(get(dir), new IncludeChildDirectoryPredicate(get(dir), singleton("nonExisting")), ALL_FILES, destinationInZip);
    Path dest = unzip(out);
    assertThat(dest.resolve(destinationInZip).toFile().list()).containsExactly("aFile.txt");
}