void () { IoTestUtil.assumeWindows(); IoTestUtil.performTestOnWindowsSubst(myJrtPath.toString(), substRoot -> { VfsRootAccess.allowRootAccess(myDisposable, substRoot.getPath()); String substitutedUrl = "jrt://" + UriUtil.trimTrailingSlashes(FileUtil.toSystemIndependentName(substRoot.getPath())) + "/!/java.base"; VirtualFilePointer pointer = VirtualFilePointerManager.getInstance().create(substitutedUrl, myDisposable, null); assertTrue(pointer.isValid()); VirtualFile file = pointer.getFile(); assertNotNull(file); assertTrue(file.getFileSystem() instanceof JrtFileSystem); }); }