}
@Test
public void testCreateOntologyWithIRIAndVersionIRIWithMapper()
throws OWLOntologyCreationException {
IRI ontologyIRI = IRI("http://www.semanticweb.org/ontologies/ontology");
IRI versionIRI = IRI("http://www.semanticweb.org/ontologies/ontology/version");
IRI documentIRI = IRI("file:documentIRI");
SimpleIRIMapper mapper = new SimpleIRIMapper(versionIRI, documentIRI);
m.getIRIMappers().add(mapper);
OWLOntology ontology = m.createOntology(new OWLOntologyID(
of(ontologyIRI), of(versionIRI)));
assertNotNull("ontology should not be null", ontology);