File grandParentDir = new File(getTestDirectory(), "grandparent");
File parentDir = new File(grandParentDir, "parent");
File childDir = new File(parentDir, "child");
createFilesForTestCopyDirectory(grandParentDir, parentDir, childDir);
NameFileFilter filter = new NameFileFilter(new String[] {"parent", "child", "file3.txt"});
File destDir = new File(getTestDirectory(), "copydest");
FileUtils.copyDirectory(grandParentDir, destDir, filter);
List<File> files = LIST_WALKER.list(destDir);
assertEquals(3, files.size());