private AuthnRequest getAuthnRequest(final boolean passive) {
            var builder = (SAMLObjectBuilder) openSamlConfigBean.getBuilderFactory()
                .getBuilder(AuthnRequest.DEFAULT_ELEMENT_NAME);
            var authnRequest = (AuthnRequest) builder.buildObject();
            authnRequest.setID(Saml20HexRandomIdGenerator.INSTANCE.getNewString());
            builder = (SAMLObjectBuilder) openSamlConfigBean.getBuilderFactory()
                .getBuilder(Issuer.DEFAULT_ELEMENT_NAME);
            val issuer = (Issuer) builder.buildObject();
            issuer.setValue(samlRegisteredService.getServiceId());
            authnRequest.setIssuer(issuer);
            authnRequest.setIsPassive(passive);
            return authnRequest;
        }
This is {@link SSOSamlIdPProfileCallbackHandlerControllerTests}.

@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/SSOSamlIdPProfileCallbackHandlerControllerTests.java