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