@Test
public void shouldBuildObjectPropertyRange()
throws OWLOntologyCreationException {
// given
BuilderObjectPropertyRange builder = new BuilderObjectPropertyRange(df)
.withProperty(op).withRange(ce).withAnnotations(annotations);
OWLAxiom expected = df.getOWLObjectPropertyRangeAxiom(op, ce,
annotations);
OWLOntology o = m.createOntology();
// when
builder.applyChanges(o);
// then
assertTrue(o.containsAxiom(expected));
}