@Test
public void replaceTest() {

    cache.put(key1, ontNoImports);
    assertTrue(cache.replace(key1, ontOneImport));
    verify(datasetManager).safeDeleteDataset(vf.createIRI("http://mobi.com/dataset/" + ResourceUtils.encode(key1)), repo.getConfig().id(), false);
}