Utils { static OWLClass ensureClass(final OWLClassExpression r) { if (!r.isAnonymous()) { return r.asOWLClass(); } throw new UnsupportedICException("Only named classes are supported: " + r); } private  Utils();   }
@Test public void testSucceedOnClass() { Utils.ensureClass(f.getOWLClass(IRI.create("http: }
@Test public void testFailOnClassExpression() { assertThrows(UnsupportedICException.class, () -> Utils.ensureClass(f.getOWLObjectComplementOf(f.getOWLClass(IRI.create("http: }