private List<NamedArgument> getArgumentsFrom(Method method, ITestResult paramITestResult) {
        return ParameterNameUtil.mapArgumentsWithParameterNames(method, asList(paramITestResult.getParameters()));
    }
TestNG Test listener to enable JGiven for a test class.
jgiven-testng/src/main/java/com/tngtech/jgiven/testng/ScenarioTestListener.java