}
@Test
public final void testGetFlattenedInstances() throws OWLReasonerRuntimeException {
for( OWLClassExpression x : ontology.getClassesInSignature() ) {
SetOfIndividuals expected = referenceReasoner.answer(new GetFlattenedInstances(referenceReasoner.getDefaultKB(), x, true));
SetOfIndividuals actual = heraklesReasoner.answer(new GetFlattenedInstances(heraklesReasoner.getDefaultKB(), x, true));
assertEquals( new HashSet<OWLIndividual>().addAll(expected), new HashSet<OWLIndividual>().addAll(actual) );
expected = referenceReasoner.answer(new GetFlattenedInstances(referenceReasoner.getDefaultKB(), x, false));
actual = heraklesReasoner.answer(new GetFlattenedInstances(heraklesReasoner.getDefaultKB(), x, false));
assertEquals( new HashSet<OWLIndividual>().addAll(expected), new HashSet<OWLIndividual>().addAll(actual) );
}
}