@Test public void testGatherAll() throws IOException { InputSupplier supp = new MultiDirSupplier(dirs); // gather all the relative paths for (String rel : supp.gatherAll(END)) { Assert.assertTrue(expectedFiles.containsValue(rel)); } supp.close(); // to please the compiler.. }