### Question:
PackageVisitor extends SimpleFileVisitor<Path> { public Collection<String> getPackages() { return packageMap.values(); }  @Override FileVisitResult preVisitDirectory(final Path dir, final BasicFileAttributes attrs); @Override FileVisitResult visitFile(final Path file, final BasicFileAttributes attrs); Collection<String> getPackages();  }### Answer:
@Test public void testGetPackages() throws Exception { final PackageVisitor visitor = new PackageVisitor(); Files.walkFileTree(getContext().getSiteDirectory().toPath(), visitor); final Collection<String> packages = visitor.getPackages(); assertTrue(packages.size() >= 8); }