throws Exception {
OWLOntology o = createOnto();
OWLOntologyManager m = o.getOWLOntologyManager();
declare(o, DATAP, CL, Integer());
m.addAxiom(o, SubClassOf(CL, DataExactCardinality(1, DATAP, Integer())));
OWL2ELProfile profile = new OWL2ELProfile();
int expected = 1;
Class[] expectedViolations = { UseOfIllegalClassExpression.class };
runAssert(o, profile, expected, expectedViolations);
}