Set<String> (FilePath... files) { final List<Change> changes = new ArrayList<>(); for (FilePath file : files) { final Change change = changeListManager.getChange(file); assertNotNull(change); changes.add(change); } Set<String> feedback = commit(changes, "test comment list"); refreshChanges(); for (FilePath file : files) { assertNull(changeListManager.getChange(file)); } return feedback; }