@Test
public void shouldBuildSubObjectProperty()
throws OWLOntologyCreationException {
// given
BuilderSubObjectProperty builder = new BuilderSubObjectProperty(df)
.withSub(op).withSup(df.getOWLTopObjectProperty())
.withAnnotations(annotations);
OWLAxiom expected = df.getOWLSubObjectPropertyOfAxiom(op,
df.getOWLTopObjectProperty(), annotations);
OWLOntology o = m.createOntology();
// when
builder.applyChanges(o);
// then
assertTrue(o.containsAxiom(expected));
}