ScenarioDetailsPageRenderer extends PageWithChartRenderer { public String getRenderedContent( final ScenarioDetailsPageCollection scenarioDetailsPageCollection, final Template template) throws CluecumberPluginException { scenarioDetailsPageCollection.setExpandBeforeAfterHooks(propertyManager.isExpandBeforeAfterHooks()); scenarioDetailsPageCollection.setExpandStepHooks(propertyManager.isExpandStepHooks()); scenarioDetailsPageCollection.setExpandDocStrings(propertyManager.isExpandDocStrings()); addChartJsonToReportDetails(scenarioDetailsPageCollection); return processedContent(template, scenarioDetailsPageCollection); } @Inject  ScenarioDetailsPageRenderer(
            final ChartJsonConverter chartJsonConverter,
            final ChartConfiguration chartConfiguration,
            final PropertyManager propertyManager); String getRenderedContent(
            final ScenarioDetailsPageCollection scenarioDetailsPageCollection,
            final Template template);  }
@Test public void testContentRendering() throws CluecumberPluginException { Template template = mock(Template.class); Element element = new Element(); List<Step> steps = new ArrayList<>(); element.setSteps(steps); ScenarioDetailsPageCollection scenarioDetailsPageCollection = new ScenarioDetailsPageCollection(element, ""); scenarioDetailsPageRenderer.getRenderedContent(scenarioDetailsPageCollection, template); }