RevCommit commit = add("test.txt", "content");
CommitFinder finder = new CommitFinder(testRepo);
CommitHistogramFilter filter = new CommitterHistogramFilter();
finder.setFilter(filter).find();
CommitHistogram histogram = filter.getHistogram();
assertNotNull(histogram);
UserCommitActivity committerActivity = histogram.getActivity(committer
.getEmailAddress());
assertNotNull(committerActivity);
assertEquals(committer.getName(), committerActivity.getName());
assertEquals(committer.getEmailAddress(), committerActivity.getEmail());
assertEquals(committerActivity, histogram.getUserActivity()[0]);
assertEquals(1, committerActivity.getCount());
assertEquals(commit, committerActivity.getFirst());
assertEquals(commit, committerActivity.getLast());
assertEquals(commit.getAuthorIdent().getWhen().getTime(),
committerActivity.getEarliest());