private void storeAuthnRequest(final MockHttpServletRequest request, final MockHttpServletResponse response,
                                   final AuthnRequest authnRequest) throws Throwable {
        val context = new MessageContext();
        context.setMessage(authnRequest);
        request.addParameter(SamlIdPConstants.AUTHN_REQUEST_ID, authnRequest.getID());
        SamlIdPSessionManager.of(openSamlConfigBean, samlIdPDistributedSessionStore)
            .store(new JEEContext(request, response), Pair.of(authnRequest, context));
    }
This is {@link SSOSamlIdPProfileCallbackHandlerControllerWithBrowserStorageTests}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-saml-idp/src/test/java/org/apereo/cas/support/saml/web/idp/profile/sso/SSOSamlIdPProfileCallbackHandlerControllerWithBrowserStorageTests.java