DirectoryResourceFilter implements ResourceFilter { @Override public boolean accept(Resource path) { return path.isDirectory(); }  @Override boolean accept(Resource path);  }
@Test public void testDirectoryResourceFilter() { DirectoryResourceFilter directoryResourceFilter = new DirectoryResourceFilter(); Assert.assertTrue(directoryResourceFilter.accept(resource)); }