@Test
public void shouldBuildPropertyChain() {
// given
List<OWLObjectProperty> chain = new ArrayList<>(ops);
BuilderPropertyChain builder = new BuilderPropertyChain(df)
.withProperty(op).withAnnotations(annotations);
for (OWLObjectPropertyExpression p : chain) {
builder.withPropertyInChain(p);
}
OWLObject expected = df.getOWLSubPropertyChainOfAxiom(chain, op,
annotations);
// when
OWLObject built = builder.buildObject();
// then
assertEquals(expected, built);
}