if(db.getHierarchy().getParents(result).size() < 1) {
db.getHierarchy().add(db, result);
}
// Compute ROC and AUC:
rocCurve.processNewResult(db, result);
// Find the ROC results
Iterator<ComputeROCCurve.ROCResult> iter = ResultUtil.filteredResults(result, ComputeROCCurve.ROCResult.class);
org.junit.Assert.assertTrue("No ROC result found.", iter.hasNext());
double auc = iter.next().getAUC();
org.junit.Assert.assertFalse("More than one ROC result found.", iter.hasNext());