### Question:
DefaultIconSetCache implements IconSetCache, Initializable { @Override public void clear() { cache.removeAll(); }  @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 clear() throws Exception { mocker.getComponentUnderTest().clear(); verify(cache).removeAll(); }
@Test public void clearByName() throws Exception { mocker.getComponentUnderTest().clear("key"); verify(cache).remove("NAMED:key"); }
@Test public void clearByNameAndWiki() throws Exception { mocker.getComponentUnderTest().clear("key", "wikiId"); verify(cache).remove("NAMED:6wikiId_key"); }
@Test public void clearByDocRef() throws Exception { DocumentReference docRef = new DocumentReference("a","b","c"); when(entityReferenceSerializer.serialize(docRef)).thenReturn("a:b.c"); mocker.getComponentUnderTest().clear(docRef); verify(cache).remove("DOC:a:b.c"); }