@Test
public void shouldBuildDatatypeRestriction() {
// given
OWLFacetRestriction r = df.getOWLFacetRestriction(OWLFacet.MAX_LENGTH,
lit);
BuilderDatatypeRestriction builder = new BuilderDatatypeRestriction(df)
.withItem(r).withDatatype(d);
OWLObject expected = df.getOWLDatatypeRestriction(d, r);
// when
OWLObject built = builder.buildObject();
// then
assertEquals(expected, built);
}