@Test
public void shouldBuildDatatypeDefinition()
throws OWLOntologyCreationException {
// given
BuilderDatatypeDefinition builder = new BuilderDatatypeDefinition(df)
.with(d).withType(df.getDoubleOWLDatatype())
.withAnnotations(annotations);
OWLAxiom expected = df.getOWLDatatypeDefinitionAxiom(d,
df.getDoubleOWLDatatype(), annotations);
OWLOntology o = m.createOntology();
// when
builder.applyChanges(o);
// then
assertTrue(o.containsAxiom(expected));
}