### Question:
DefaultIconSetCache implements IconSetCache, Initializable { @Override public void put(String name, IconSet iconSet) { cache.set(getKeyFromName(name), iconSet); }  @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 putByName() throws Exception { IconSet iconSet = new IconSet("key"); mocker.getComponentUnderTest().put("key", iconSet); verify(cache).set("NAMED:key", iconSet); }
@Test public void putByNameAndWiki() throws Exception { IconSet iconSet = new IconSet("key"); mocker.getComponentUnderTest().put("key", "wikiId", iconSet); verify(cache).set("NAMED:6wikiId_key", iconSet); }
@Test public void putByDocRef() throws Exception { IconSet iconSet = new IconSet("key"); DocumentReference docRef = new DocumentReference("a","b","c"); when(entityReferenceSerializer.serialize(docRef)).thenReturn("a:b.c"); mocker.getComponentUnderTest().put(docRef, iconSet); verify(cache).set("DOC:a:b.c", iconSet); }