axioms2.add(SubAnnotationPropertyOf(annoPropR, annoProp2));
axioms2.add(AnnotationPropertyRange(annoPropR, indA.getIRI()));
axioms2.add(AnnotationPropertyDomain(annoPropR, indA.getIRI()));
OWLEntityRenamer entityRenamer = new OWLEntityRenamer(
ont.getOWLOntologyManager(), singleton(ont));
List<OWLOntologyChange> changes = entityRenamer.changeIRI(annoProp,
annoPropR.getIRI());
ont.getOWLOntologyManager().applyChanges(changes);
assertEquals(ont.getAxioms(), axioms2);
List<OWLOntologyChange> changes2 = entityRenamer.changeIRI(
annoPropR.getIRI(), annoProp.getIRI());