public MockRequestContext setFlowExecutionContext(final String flowIdLogin) {
        val flow = new Flow(flowIdLogin);
        flow.setApplicationContext(getApplicationContext());
        val exec = new MockFlowExecutionContext(new MockFlowSession(flow));
        setFlowExecutionContext(exec);
        return this;
    }
This is {@link MockRequestContext}.

@author Misagh Moayyed
@since 6.6.0
core/cas-server-core-util-api/src/test/java/org/apereo/cas/util/MockRequestContext.java