axioms2.add(DataPropertyAssertion(propA, indB, Literal(33)));
axioms2.add(NegativeDataPropertyAssertion(propA, indB, Literal(44)));
axioms2.add(AnnotationAssertion(annoProp, propA.getIRI(), Literal("X")));
axioms2.add(ObjectPropertyAssertion(propB, indB, indB));
axioms2.add(NegativeObjectPropertyAssertion(propB, indB, indB));
OWLEntityRenamer entityRenamer = new OWLEntityRenamer(
ont.getOWLOntologyManager(), singleton(ont));
List<OWLOntologyChange> changes = entityRenamer.changeIRI(indA,
indB.getIRI());
ont.getOWLOntologyManager().applyChanges(changes);
assertEquals(ont.getAxioms(), axioms2);
List<OWLOntologyChange> changes2 = entityRenamer.changeIRI(
indB.getIRI(), indA.getIRI());
ont.getOWLOntologyManager().applyChanges(changes2);
assertEquals(ont.getAxioms(), axioms1);
}