}
@Test(expected = OWLOntologyDocumentAlreadyExistsException.class)
public void testCreateDuplicatedDocumentIRI()
throws OWLOntologyCreationException {
IRI ontologyIRI = IRI("http://www.semanticweb.org/ontologies/ontology");
IRI ontologyIRI2 = IRI("http://www.semanticweb.org/ontologies/ontology2");
IRI documentIRI = IRI("file:documentIRI");
m.getIRIMappers().add(new SimpleIRIMapper(ontologyIRI, documentIRI));
m.getIRIMappers().add(new SimpleIRIMapper(ontologyIRI2, documentIRI));
m.createOntology(new OWLOntologyID(of(ontologyIRI), of((IRI) null)));
m.createOntology(new OWLOntologyID(of(ontologyIRI2), of((IRI) null)));
}