RevCommit commit2 = add("a.txt", "aa");
add("b.txt", "b");
RevCommit commit4 = add("b.txt", "bb");
RevCommit commit5 = add("c.txt", "c");
LastCommitDiffFilter filter = new LastCommitDiffFilter();
new CommitFinder(testRepo).setFilter(filter).find();
Map<String, RevCommit> commits = filter.getCommits();
assertNotNull(commits);
assertEquals(3, commits.size());
assertEquals(commit2, commits.get("a.txt"));
assertEquals(commit4, commits.get("b.txt"));
assertEquals(commit5, commits.get("c.txt"));