void () { IoTestUtil.assumeWindows(); VirtualFile vDir = getVirtualTempRoot(); String rel = "/xxx/!/c.txt"; VirtualFilePointer pointer = myVirtualFilePointerManager.create(vDir.getUrl() + rel, disposable, null); assertFalse(pointer.isValid()); assertTrue(FileUtil.createIfDoesntExist(new File(vDir.getPath() + rel))); vDir.refresh(false, true); assertTrue(pointer.isValid()); }