void () { File file = tempDir.newFile("f1"); VirtualFile vFile = getVirtualFile(file); Disposable disposable = Disposer.newDisposable(); VirtualFilePointer pointer = myVirtualFilePointerManager.create(vFile, disposable, null); assertTrue(pointer.isValid()); Disposer.dispose(disposable); assertFalse(pointer.isValid()); }