public void shouldCreateViolationForOWLOntologyInOWL2DLProfile()
throws Exception {
OWLOntology o = OWLManager.createOWLOntologyManager().createOntology(
new OWLOntologyID(Optional.of(IRI(START + "test")), Optional
.of(IRI(START + "test1"))));
OWL2DLProfile profile = new OWL2DLProfile();
int expected = 2;
Class[] expectedViolations = {
UseOfReservedVocabularyForOntologyIRI.class,
UseOfReservedVocabularyForVersionIRI.class };
runAssert(o, profile, expected, expectedViolations);