public void shouldGenerateRemoveThenAdd() {
Set<OntologyAxiomPair> from = Collections.singleton(pairA);
Set<OntologyAxiomPair> to = Collections.singleton(pairB);
List<OWLOntologyChange> changes = generator.generateChanges(from, to);
assertThat(changes, hasSize(2));
OWLOntologyChange change0 = changes.get(0);
assertThat(change0.isRemoveAxiom(), is(true));
assertThat(change0.getAxiom(), is(equalTo(ax)));
assertThat(change0.getOntology(), is(equalTo(ontA)));
OWLOntologyChange change1 = changes.get(1);
assertThat(change1.isAddAxiom(), is(true));
assertThat(change1.getAxiom(), is(equalTo(ax)));
assertThat(change1.getOntology(), is(equalTo(ontB)));
}