public void testMultipleVersionLoadsExplicitOntologyIDs() throws Exception {
OWLOntologyID initialUniqueOWLOntologyID = new OWLOntologyID(i139, v1);
OWLOntology initialOntology = m
.createOntology(initialUniqueOWLOntologyID);
OWLParser parser = new RDFXMLParser();
parser.parse(new StringDocumentSource(INPUT), initialOntology, config);
assertEquals(i139, initialOntology.getOntologyID().getOntologyIRI());
assertEquals(v1, initialOntology.getOntologyID().getVersionIRI());
OWLOntologyID secondUniqueOWLOntologyID = new OWLOntologyID(i139, v2);
OWLOntology secondOntology = m
.createOntology(secondUniqueOWLOntologyID);
OWLParser secondParser = new RDFXMLParser();
secondParser.parse(new StringDocumentSource(INPUT), secondOntology,
config);
assertEquals(i139, secondOntology.getOntologyID().getOntologyIRI());
assertEquals(v2, secondOntology.getOntologyID().getVersionIRI());
}