void () { File tempJar = IoTestUtil.createTestJar(tempDir.newFile("test.jar")); VirtualFile jar = LocalFileSystem.getInstance().refreshAndFindFileByIoFile(tempJar); assertNotNull(jar); NewVirtualFile root1 = ManagingFS.getInstance().findRoot(jar.getPath() + "!/", JarFileSystem.getInstance()); NewVirtualFile root2 = ManagingFS.getInstance().findRoot(jar.getParent().getPath() + "//" + jar.getName() + "!/", JarFileSystem.getInstance()); assertNotNull(root1); assertSame(root1, root2); assertNull(LocalFileSystem.getInstance().findFileByPath("//../blah-blah")); // it must not crash in FsRoot("//..") assertNull(LocalFileSystem.getInstance().findFileByPath("//./blah-blah")); // it must not crash in FsRoot("//.") }