@Test
public void shouldBuildAnnotationAssertion()
throws OWLOntologyCreationException {
// given
BuilderAnnotationAssertion builder = new BuilderAnnotationAssertion(df)
.withAnnotations(annotations).withProperty(ap).withSubject(iri)
.withValue(lit);
OWLAxiom expected = df.getOWLAnnotationAssertionAxiom(ap, iri, lit,
annotations);
OWLOntology o = m.createOntology();
// when
builder.applyChanges(o);
// then
assertTrue(o.containsAxiom(expected));
}