### Question:
DefaultIconSetCache implements IconSetCache, Initializable { @Override public IconSet get(String name) { return cache.get(getKeyFromName(name)); }  @Override void initialize(); @Override IconSet get(String name); @Override IconSet get(String name, String wikiId); @Override IconSet get(DocumentReference documentReference); @Override void put(String name, IconSet iconSet); @Override void put(String name, String wikiId, IconSet iconSet); @Override void put(DocumentReference documentReference, IconSet iconSet); @Override void clear(); @Override void clear(DocumentReference documentReference); @Override void clear(String name); @Override void clear(String name, String wikiId);  }### Answer:
@Test public void getByName() throws Exception { IconSet iconSet = new IconSet("key"); when(cache.get("NAMED:key")).thenReturn(iconSet); IconSet result = mocker.getComponentUnderTest().get("key"); assertTrue(iconSet == result); }
@Test public void getByNameAndWiki() throws Exception { IconSet iconSet = new IconSet("key"); when(cache.get("NAMED:6wikiId_key")).thenReturn(iconSet); IconSet result = mocker.getComponentUnderTest().get("key", "wikiId"); assertTrue(iconSet == result); }
@Test public void getByDocRef() throws Exception { IconSet iconSet = new IconSet("key"); DocumentReference docRef = new DocumentReference("a","b","c"); when(entityReferenceSerializer.serialize(docRef)).thenReturn("a:b.c"); when(cache.get("DOC:a:b.c")).thenReturn(iconSet); IconSet result = mocker.getComponentUnderTest().get(docRef); assertTrue(iconSet == result); }