AllStepsPageRenderer extends PageWithChartRenderer { public String getRenderedContent( final AllStepsPageCollection allStepsPageCollection, final Template template) throws CluecumberPluginException { addChartJsonToReportDetails(allStepsPageCollection); return processedContent(template, allStepsPageCollection); } @Inject  AllStepsPageRenderer(
            final ChartJsonConverter chartJsonConverter,
            final ChartConfiguration chartConfiguration
    ); String getRenderedContent(
            final AllStepsPageCollection allStepsPageCollection, 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); AllStepsPageCollection allStepsPageCollection = new AllStepsPageCollection(reports, ""); allStepsPageRenderer.getRenderedContent(allStepsPageCollection, template); }