public void testCorrectAxiomAnnotated() throws OWLOntologyCreationException {
OWLOntology ontology = createOntology();
OWLNamedIndividual subject = NamedIndividual(IRI("http://Example.com#myBuilding"));
OWLObjectProperty predicate = ObjectProperty(IRI("http://Example.com#located_at"));
OWLNamedIndividual object = NamedIndividual(IRI("http://Example.com#myLocation"));
OWLAxiom ax = ObjectPropertyAssertion(predicate, subject, object);
assertTrue(ontology.containsAxiom(ax, EXCLUDED,
AxiomAnnotations.IGNORE_AXIOM_ANNOTATIONS));
Set<OWLAxiom> axioms = ontology
.getAxiomsIgnoreAnnotations(ax, EXCLUDED);
assertEquals(1, axioms.size());
OWLAxiom theAxiom = axioms.iterator().next();
assertTrue(theAxiom.isAnnotated());
}