private void storeSamlAuthnRequest(@NotNull final AuthnRequest authnRequest) throws Throwable {
        val request = (MockHttpServletRequest) HttpRequestUtils.getHttpServletRequestFromRequestAttributes();
        request.setParameter(SamlIdPConstants.AUTHN_REQUEST_ID, authnRequest.getID());

        val response = HttpRequestUtils.getHttpServletResponseFromRequestAttributes();
        val context = new JEEContext(request, response);
        val messageContext = new MessageContext();
        messageContext.setMessage(authnRequest);
        SamlIdPSessionManager.of(openSamlConfigBean, samlIdPDistributedSessionStore)
            .store(context, Pair.of(authnRequest, messageContext));
    }
This is {@link AuthnRequestRequestedAttributesAttributeReleasePolicyTests}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-saml-idp/src/test/java/org/apereo/cas/support/saml/services/AuthnRequestRequestedAttributesAttributeReleasePolicyTests.java