void () { try { File d = tempDir.newDirectory(); VirtualFile vDir = requireNonNull(LocalFileSystem.getInstance().refreshAndFindFileByIoFile(d)); ManagingFS.getInstance().findRoot(vDir.getPath(), myFS); fail("should fail by assertion in PersistentFsImpl.findRoot()"); } catch (Throwable t) { String message = t.getMessage(); assertTrue(message, message.startsWith("Must pass FS root path, but got")); } }