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