Utils { static OWLObjectProperty ensureObjectProperty(final OWLObjectPropertyExpression e) { if (e.isAnonymous()) { throw new UnsupportedICException("Object property expressions not supported: " + e); } return e.asOWLObjectProperty(); } private  Utils();   }
@Test public void testSucceedOnObjectProperty() { Utils.ensureObjectProperty(f.getOWLObjectProperty(IRI.create("http: }
@Test public void testFailOnObjectPropertyExpression() { assertThrows(UnsupportedICException.class, () -> Utils.ensureObjectProperty( f.getOWLObjectInverseOf(f.getOWLObjectProperty(IRI.create("http: }