### Question:
FilterFileVisitor implements FileVisitor { private boolean isEmpty(String s) { return s == null || s.length() == 0; } FilterFileVisitor(File basedir, List<Filter> includes, List<Filter> excludes, FileVisitor visitor); @Override void visit(File file);  }### Answer:
@Test public void doNotVisitFileThatDoesNotMatchInclude() throws Exception { touch(basedir, "server.txt"); List<Filter> includes = asList(new Filter(basedir.getAbsolutePath(), "*.html")); List<Filter> excludes = emptyList(); TestVisitor visitor = new TestVisitor(); forEachFile(basedir, new FilterFileVisitor(basedir, includes, excludes, visitor)); assertTrue(visitor.visitedFiles.isEmpty(), "Do not visit files that do not match an includes filter"); }