public synchronized void addScenarioModelOrMergeWithExistingOne(ScenarioModel scenarioModel) {
        Optional<ScenarioModel> existingScenarioModel = findScenarioModel(scenarioModel.getDescription());

        if (existingScenarioModel.isPresent()) {
            AssertionUtil.assertTrue(scenarioModel.getScenarioCases().size() == 1,
                "ScenarioModel has more than one case");
            existingScenarioModel.get().addCase(scenarioModel.getCase(0));
            existingScenarioModel.get().addDurationInNanos(scenarioModel.getDurationInNanos());
        } else {
            addScenarioModel(scenarioModel);
        }
    }
An optional description of the test class.
jgiven-core/src/main/java/com/tngtech/jgiven/report/model/ReportModel.java