@Test
public void testGetAxiomsIgnoringAnnoations() {
OWLLiteral annoLiteral = Literal("value");
OWLAnnotationProperty annoProp = AnnotationProperty(iri("annoProp"));
OWLAnnotation anno = df.getOWLAnnotation(annoProp, annoLiteral);
OWLAxiom axiom = df.getOWLSubClassOfAxiom(Class(iri("A")),
Class(iri("B")), singleton(anno));
OWLOntology ont = getOWLOntology("testont");
ont.getOWLOntologyManager().addAxiom(ont, axiom);
assertTrue(ont.getAxiomsIgnoreAnnotations(axiom, EXCLUDED).contains(
axiom));
assertFalse(ont.getAxiomsIgnoreAnnotations(axiom, EXCLUDED).contains(
axiom.getAxiomWithoutAnnotations()));
assertTrue(ont.getAxiomsIgnoreAnnotations(
axiom.getAxiomWithoutAnnotations(), EXCLUDED).contains(axiom));
assertFalse(ont.getAxiomsIgnoreAnnotations(
axiom.getAxiomWithoutAnnotations(), EXCLUDED).contains(
axiom.getAxiomWithoutAnnotations()));
}