assertNotNull(shouldBeNotNull);
}
@Test
public void testRemoveCustomOntology() throws Exception {
OntologySpace space = null;
space = factory.createCustomOntologySpace(scopeId, dropSrc);
OWLOntologyID dropId = OWLUtils.extractOntologyID(dropSrc.getRootOntology());
OWLOntologyID nonexId = OWLUtils.extractOntologyID(nonexSrc.getRootOntology());
space.addOntology(inMemorySrc);
space.addOntology(nonexSrc);
// The other remote ontologies may change base IRI...
// baseIri is maincharacters
assertTrue(space.hasOntology(baseIri));
assertTrue(space.hasOntology(dropId));
assertTrue(space.hasOntology(nonexId));
space.removeOntology(dropId);
assertFalse(space.hasOntology(dropId));
space.removeOntology(nonexId);
assertFalse(space.hasOntology(nonexId));
// OntologyUtils.printOntology(space.getTopOntology(), System.err);
}