### Question:
DefaultIconRenderer implements IconRenderer { @Override public String renderHTML(String iconName, IconSet iconSet) throws IconException { return render(iconName, iconSet, iconSet.getRenderHTML()); }  @Override String render(String iconName, IconSet iconSet); @Override String renderHTML(String iconName, IconSet iconSet); @Override String render(String iconName, IconSet iconSet, String renderer); @Override void use(IconSet iconSet);  }### Answer:
@Test public void renderHTML() throws Exception { IconSet iconSet = new IconSet("default"); iconSet.setRenderHTML("<img src=\"$icon.png\" />"); iconSet.addIcon("test", new Icon("blabla")); when(velocityRenderer.render("#set($icon = \"blabla\")\n<img src=\"$icon.png\" />")) .thenReturn("<img src=\"blabla.png\" />"); String result = iconRenderer.renderHTML("test", iconSet); assertEquals("<img src=\"blabla.png\" />", result); }