@Test
public void shouldBuildAnnotationPropertyRange()
throws OWLOntologyCreationException {
// given
BuilderAnnotationPropertyRange builder = new BuilderAnnotationPropertyRange(
df).withProperty(ap).withRange(iri)
.withAnnotations(annotations);
OWLAxiom expected = df.getOWLAnnotationPropertyRangeAxiom(ap, iri,
annotations);
OWLOntology o = m.createOntology();
// when
builder.applyChanges(o);
// then
assertTrue(o.containsAxiom(expected));
}