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