@Override
    public Map<String, String[]> getRequestParameters() {
        final Map<String, String[]> map = new HashMap<>();
        for (val entry : this.parameters.entrySet()) {
            val value = entry.getValue();
            val values = new String[] {value};
            map.put(entry.getKey(), values);
        }
        return map;
    }
Set the request method for mock purpose.

@param method request method
@return this mock web context
pac4j-core/src/test/java/org/pac4j/core/context/MockWebContext.java