// Create a new ontology in the test resources.
OWLOntologyManager mgr = OWLOntologyManagerFactory.createOWLOntologyManager(null);
OWLOntology o = mgr.createOntology(dummyiri);
File f = new File(URI.create(url.toString() + "/dummycharacters.owl"));
mgr.saveOntology(o, new WriterDocumentTarget(new FileWriter(f)));
assertTrue(f.exists());
((AutoIRIMapper) mapper).update();
// The old mapper should be able to locate the new ontology.
assertFalse(dummyiri.equals(mapper.getDocumentIRI(dummyiri)));