changeSet1.setDriftDefinitionName(driftDefName);
changeSet1.setResourceId(resourceId1);
changeSet1.setCategory(COVERAGE);
changeSet1.setVersion(0);
MongoDBChangeSetEntry entry1 = new MongoDBChangeSetEntry("./1.bin", FILE_ADDED);
entry1.setNewFileHash("./1.bin");
changeSet1.add(entry1);
changeSetDAO.save(changeSet1);
MongoDBChangeSet changeSet2 = new MongoDBChangeSet();
changeSet2.setDriftDefinitionId(driftDefId);
changeSet2.setDriftDefinitionName(driftDefName);
changeSet2.setResourceId(resourceId1);
changeSet2.setCategory(DRIFT);
changeSet2.setVersion(1);
MongoDBChangeSetEntry entry2 = new MongoDBChangeSetEntry("./1.bin", FILE_CHANGED);
entry2.setNewFileHash(sha256("./1.bin.new"));
entry2.setOldFileHash(sha256("./1.bin"));
changeSet2.add(entry2);
MongoDBChangeSetEntry entry3 = new MongoDBChangeSetEntry("./2.bin", FILE_ADDED);
entry3.setNewFileHash("./2.bin");
changeSet2.add(entry3);
changeSetDAO.save(changeSet2);
MongoDBChangeSet changeSet3 = new MongoDBChangeSet();
changeSet3.setDriftDefinitionId(driftDefId);
changeSet3.setDriftDefinitionName(driftDefName);
changeSet3.setResourceId(resourceId2);
changeSet3.setCategory(COVERAGE);
changeSet3.setVersion(0);
MongoDBChangeSetEntry entry4 = new MongoDBChangeSetEntry("./3.bin", FILE_ADDED);
entry4.setNewFileHash(sha256("./3.bin"));
changeSet3.add(entry4);
changeSetDAO.save(changeSet3);
GenericDriftChangeSetCriteria criteria = new GenericDriftChangeSetCriteria();
criteria.addFilterDriftDefinitionId(driftDefId);