### Question:
EmbeddedTemplateWebPanel extends AbstractWebPanel { public String getHtml(Map<String, Object> context) { try { return getRenderer().renderFragment(templateBody, plugin, context); } catch (RendererException e) { final String message = String.format("Error rendering WebPanel: %s\n" + "Template contents: %s", e.getMessage(), templateBody); logger.warn(message, e); return message; } } EmbeddedTemplateWebPanel(PluginAccessor pluginAccessor); void setTemplateBody(String templateBody); String getHtml(Map<String, Object> context);  }### Answer:
@Test public void testGetHtml() { final PluginAccessor accessorMock = mock(PluginAccessor.class); when(accessorMock.getEnabledModulesByClass(WebPanelRenderer.class)).thenReturn(Collections.<WebPanelRenderer>emptyList()); final EmbeddedTemplateWebPanel embeddedTemplateWebPanel = new EmbeddedTemplateWebPanel(accessorMock); embeddedTemplateWebPanel.setResourceType("static"); embeddedTemplateWebPanel.setTemplateBody("body"); assertEquals("body", embeddedTemplateWebPanel.getHtml(Collections.<String, Object>emptyMap())); }