void () { VirtualFilePointer parentPointer = createRecursivePointer("parent"); VirtualFilePointer dirPointer = createRecursivePointer("parent/dir"); VirtualFilePointer subdirPointer = createRecursivePointer("parent/dir/subdir"); VirtualFilePointer filePointer = createPointer("parent/dir/subdir/file.txt"); VirtualFile root = myDir(); VirtualFileSystemEntry parent = createChildDirectory(root, "parent"); VirtualFileSystemEntry dir = createChildDirectory(parent, "dir"); VirtualFileSystemEntry subdir = createChildDirectory(dir, "subdir"); assertPointersUnder(subdir, "xxx.txt", parentPointer, dirPointer, subdirPointer); assertPointersUnder(subdir.getParent(), subdir.getName(), parentPointer, dirPointer, subdirPointer, filePointer); assertPointersUnder(dir.getParent(), dir.getName(), parentPointer, dirPointer, subdirPointer, filePointer); assertPointersUnder(parent.getParent(), parent.getName(), parentPointer, dirPointer, subdirPointer, filePointer); }