@Test
public void iteratorTest() {

    cache.put(key1, ontNoImports);
    cache.put(key2, ontOneImport);
    cache.put(key3, ontMultipleImports);
    Map<String, Ontology> map = new HashMap<>();
    for (Cache.Entry<String, Ontology> entry : cache) {
        map.put(entry.getKey(), entry.getValue());
    }
    assertEquals(ontNoImports, map.get(key1));
    assertEquals(ontOneImport, map.get(key2));
    assertEquals(ontMultipleImports, map.get(key3));
}