assertNotNull(shouldBeNotNull);
}
@Test
public void testRemoveCustomOntology() throws Exception {
CustomOntologySpace space = null;
space = factory.createCustomOntologySpace(scopeId, dropSrc);
IRI dropId = URIUtils.createIRI(OWLUtils.guessOntologyIdentifier(dropSrc.getRootOntology()));
IRI nonexId = URIUtils.createIRI(OWLUtils.guessOntologyIdentifier(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);
}