assertTrue(space.hasOntology(logicalId));
}
@Test
public void testCoreLock() throws Exception {
CoreOntologySpace space = factory.createCoreOntologySpace(scopeId, inMemorySrc);
space.setUp();
try {
space.addOntology(minorSrc);
fail("Modification was permitted on locked ontology space.");
} catch (UnmodifiableOntologyCollectorException e) {
assertSame(space, e.getOntologyCollector());
}
}