driftServer.purgeOrphanedContent();
FileDAO fileDAO = new FileDAO(ds.getDB());
assertNull(fileDAO.findById(file2.getName()), "Expected unreferenced file to be deleted");
assertNotNull(fileDAO.findById(file1.getName()), "Referenced file should not be deleted");
}
@Test
public void findChangeSetsByCriteriaAndDoNotFetchDrifts() throws Exception {
String driftDefName = "testdef";