public void findEntriesWithResourceIdAndStartTimeFilter() throws Exception {
long startTime = System.currentTimeMillis() - (1000 * 60 * 60); // one hour ago
MongoDBChangeSet c1 = createChangeSet(COVERAGE, 1, 1, 1);
c1.setCtime(startTime - (1000 * 5)); // c1 is created 5 seconds before startTime
MongoDBChangeSetEntry e1 = new MongoDBChangeSetEntry("c1-1.txt", FILE_ADDED);
c1.add(e1);
e1.setCtime(startTime - (1000 * 5)); // e1 is created 5 seconds before startTime
dao.save(c1);
MongoDBChangeSet c2 = createChangeSet(COVERAGE, 1, 2, 1);
c2.setCtime(startTime - (1000 * 5)); // c2 is created 5 seconds before startTime
MongoDBChangeSetEntry e2 = new MongoDBChangeSetEntry("c2-1.txt", FILE_ADDED);
e2.setCtime(startTime - (1000 * 5)); // e2 is created 5 seconds before startTime
c2.add(new MongoDBChangeSetEntry("c2-1.txt", FILE_ADDED));
dao.save(c2);
MongoDBChangeSet c3 = createChangeSet(DRIFT, 2, 1, 1);
MongoDBChangeSetEntry e3 = new MongoDBChangeSetEntry("c1-1.txt", FILE_CHANGED);
c3.add(e3);
dao.save(c3);
GenericDriftCriteria criteria = new GenericDriftCriteria();
criteria.addFilterStartTime(startTime);