}
protected void testVisit(MockVFSContext context, MockVirtualFileVisitor visitor, HashSet<String> expected) throws Exception
{
VFS vfs = context.getVFS();
vfs.visit(visitor);
HashSet<String> actual = new HashSet<String>();
for (VirtualFile file : visitor.getVisited())
actual.add(file.getPathName());
assertEquals(expected, actual);