@Override
    public void onTestFailure(ITestResult paramITestResult) {
        ScenarioBase scenario = getScenario(paramITestResult);
        if (scenario != null) {
            scenario.getExecutor().failed(paramITestResult.getThrowable());
            testFinished(paramITestResult);
        }
    }
TestNG Test listener to enable JGiven for a test class.
jgiven-testng/src/main/java/com/tngtech/jgiven/testng/ScenarioTestListener.java