AllTagsPageRenderer extends PageWithChartRenderer { public String getRenderedContent( final AllTagsPageCollection allTagsPageCollection, final Template template) throws CluecumberPluginException { addChartJsonToReportDetails(allTagsPageCollection); return processedContent(template, allTagsPageCollection); } @Inject  AllTagsPageRenderer(
            final ChartJsonConverter chartJsonConverter,
            final ChartConfiguration chartConfiguration
    ); String getRenderedContent(
            final AllTagsPageCollection allTagsPageCollection, final Template template);  }
@Test public void testContentRendering() throws CluecumberPluginException { Template template = mock(Template.class); Report report = new Report(); List<Report> reports = new ArrayList<>(); reports.add(report); AllTagsPageCollection allTagsPageCollection = new AllTagsPageCollection(reports, ""); allTagsPageRenderer.getRenderedContent(allTagsPageCollection, template); }