void (HgFileStatusEnum status, String... filepath) { Set<HgChange> localChanges = new HgStatusCommand.Builder(true).build(myProject).executeInCurrentThread(projectRepoVirtualFile); assertTrue(localChanges.contains(new HgChange(getHgFile(filepath), status))); }