void () { File x = tempDirectory.newFile("x.jar"); VirtualFile vx = refreshAndFind(x); JarFileSystem jfs = JarFileSystem.getInstance(); VirtualFile root = jfs.getJarRootForLocalFile(vx); String path = vx.getPath() + "/../" + vx.getName() + JarFileSystem.JAR_SEPARATOR; assertSame(PersistentFS.getInstance().findRoot(path, jfs), root); }