OntologyCacheImpl implements OntologyCache { @Override public String generateKey(String recordIri, String commitIri) { return String.format("%s&%s", recordIri, commitIri); }  @Reference void setCacheManager(CacheManager cacheManager); @Override String generateKey(String recordIri, String commitIri); @Override Optional<Cache<String, Ontology>> getOntologyCache(); @Override void clearCacheImports(Resource ontologyIRI); @Override void clearCache(@Nonnull Resource recordId); @Override void removeFromCache(String recordIdStr, String commitIdStr);  }
@Test public void generateKeyTest() throws Exception { assertEquals("test&test", service.generateKey("test", "test")); assertEquals("test&null", service.generateKey("test", null)); assertEquals("null&null", service.generateKey(null, null)); }