.getViolations();
assertEquals(expected, violations.size());
checkInCollection(violations, expectedViolations);
for (OWLProfileViolation violation : violations) {
o.getOWLOntologyManager().applyChanges(violation.repair());
violation.accept(new OWLProfileViolationVisitorAdapter());
violation.accept(new OWLProfileViolationVisitorExAdapter<String>() {
@Override
protected String doDefault(@Nonnull OWLProfileViolation object) {
return object.toString();