VirtualFile (String name, String content) { VirtualFile file = tempDir.createVirtualFile(name, content); // this should be new physical file with no any data associated with it assertTrue("VirtualFile should be VirtualFileWithId, actual type is " + file.getClass(), file instanceof VirtualFileWithId); assertNull("File [" + file + "] should be fresh, no data associated with it", memKey.get(file)); assertNull("File [" + file + "] should be fresh, no data associated with it", key.getPersistentValue(file)); return file; }