protected AuthnRequest getAuthnRequestFor(final String service) {
        val authnRequest = samlProfileSamlResponseBuilder.newSamlObject(AuthnRequest.class);
        authnRequest.setID(Saml20HexRandomIdGenerator.INSTANCE.getNewString());
        val issuer = samlProfileSamlResponseBuilder.newSamlObject(Issuer.class);
        issuer.setValue(service);
        authnRequest.setIssuer(issuer);
        authnRequest.setIssueInstant(Instant.now(Clock.systemUTC()));
        return authnRequest;
    }
This is {@link BaseSamlIdPConfigurationTests}.

@author Misagh Moayyed
@since 5.1.0
support/cas-server-support-saml-idp/src/test/java/org/apereo/cas/support/saml/BaseSamlIdPConfigurationTests.java