@Test
public void getOntologyCacheTest() throws Exception {

    Optional<Cache<String, Ontology>> result = service.getOntologyCache();
    assertTrue(result.isPresent());
    assertEquals(cache, result.get());
    service.setCacheManager(null);
    result = service.getOntologyCache();
    assertFalse(result.isPresent());
}