void (String jarName) { File x = tempDirectory.newFile(jarName); refreshAndFind(x); JarFileSystem jfs = JarFileSystem.getInstance(); String path = x.getPath() + "/../" + x.getName() + JarFileSystem.JAR_SEPARATOR; NewVirtualFile root = PersistentFS.getInstance().findRoot(path, jfs); assertNotNull(path, root); assertFalse(root.getPath(), root.getPath().contains("../")); assertFalse(root.getPath(), root.getPath().contains("/..")); }