finder.setFilter(filter).find();
FileHistogram histogram = filter.getHistogram();
assertNotNull(histogram);
assertNull(histogram.getActivity(null));
FileCommitActivity activity = histogram.getActivity("file.txt");
assertNotNull(activity);
assertEquals(1, activity.getRevisions());
assertEquals(1, activity.getAdds());
assertEquals(0, activity.getCopies());
assertEquals(0, activity.getEdits());
assertEquals(0, activity.getDeletes());
assertEquals(0, activity.getRenames());
assertEquals("file.txt", activity.getPath());
assertNotNull(activity.getPreviousPaths());
assertTrue(activity.getPreviousPaths().isEmpty());
assertNotNull(histogram.getFileActivity());
assertEquals(1, histogram.getFileActivity().length);
assertEquals(activity, histogram.getFileActivity()[0]);
}