void () { File file = tempDirectory.newFile("test.txt"); VirtualFile vFile = refreshAndFind(file); int id = ((VirtualFileWithId)vFile).getId(); assertEquals("File is unique identified by its fileId", vFile, PersistentFS.getInstance().findFileById(id) ); VfsTestUtil.deleteFile(vFile); assertNull("Deleted file can't be found by its fileId anymore", PersistentFS.getInstance().findFileById(id)); }