@Override
    public void afterTestExecution(ExtensionContext context) throws Exception {
        Class<?> testClass = context.getTestClass()
            .orElseThrow(() -> new JGivenWrongUsageException("tests without test class are not supported yet"));
        Optional.ofNullable(ScenarioHolder.get())
            .map(ScenarioHolder::getScenarioOfCurrentThread)
            .map(ScenarioBase::getModel)
            .ifPresent(model -> modelHolder.put(testClass, model));
        super.afterTestExecution(context);
    }
Extracts the report Model from within the Test context before it gets deleted.
jgiven-tests/src/main/java/com/tngtech/jgiven/tests/JGivenReportExtractingExtension.java