OWLAnnotationProperty p = AnnotationProperty(IRI("http://test.org/MissingDeclaration.owl#p"));
OWLOntology ontology = createOntology(p);
assertTrue(ontology.containsAnnotationPropertyInSignature(p.getIRI(),
EXCLUDED));
assertEquals(1, ontology.getAxiomCount());
RDFXMLDocumentFormat format = new RDFXMLDocumentFormat();
format.setAddMissingTypes(false);
ontology = loadOntologyStrict(saveOntology(ontology, format));
assertFalse(ontology.containsAnnotationPropertyInSignature(p.getIRI(),
EXCLUDED));
assertEquals(0, ontology.getAxiomCount());
}