void () { final File sourceDir = new File(myWorkingCopyDir.getPath(), "source"); final File externalFile = new File(sourceDir, "external/t11.txt"); final VirtualFile externalVf = LocalFileSystem.getInstance().refreshAndFindFileByIoFile(externalFile); assertNotNull(externalVf); editFileInCommand(externalVf, "some new content"); refreshChanges(); final Change change = changeListManager.getChange(externalVf); assertNotNull(change); assertEquals(FileStatus.MODIFIED, change.getFileStatus()); }