private static final String ONTOLOGY_A = "ImportsTestOntologyA.owl";
private static final String ONTOLOGY_A_EMPTY = "ImportsTestOntologyAEmpty.owl";
@Test(expected = OWLOntologyAlreadyExistsException.class)
public void testDifferentPhysicalURISameOntologyIRI() throws Exception {
IRI ontologyADocumentIRI = IRI
.create(DifferentPhysicalURISameOntologyIRITestCase.class
.getResource('/' + ONTOLOGY_A).toURI());
IRI ontologyADocumentIRIB = IRI
.create(DifferentPhysicalURISameOntologyIRITestCase.class
.getResource('/' + ONTOLOGY_A_EMPTY).toURI());
m.loadOntologyFromOntologyDocument(ontologyADocumentIRI);
m.loadOntologyFromOntologyDocument(ontologyADocumentIRIB);
fail("Expected an exception to say that the ontology already exists");