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