MongoDBChangeSetEntry e4 = new MongoDBChangeSetEntry("c1-1.txt", FILE_CHANGED);
MongoDBChangeSetEntry e5 = new MongoDBChangeSetEntry("c1-2.txt", FILE_REMOVED);
c3.add(e4).add(e5);
dao.save(c3);
GenericDriftCriteria criteria = new GenericDriftCriteria();
criteria.addFilterResourceIds(1);
criteria.addFilterCategories(FILE_ADDED, FILE_CHANGED);
List<MongoDBChangeSetEntry> entries = dao.findEntries(criteria);
assertEntriesMatch("Failed to find change set entries with resource id and category filters",
asList(e1, e2, e4), entries);
}