@Test
    public void testBuildAuthnRequestWithNoProviderAndNameIdPolicyAllowCreate() {
        configuration.setProviderName(null);
        configuration.setUseNameQualifier(true);
        configuration.setNameIdPolicyFormat("sample-nameid-format");
        configuration.setNameIdPolicyAllowCreate(null);
        SAML2ObjectBuilder<AuthnRequest> builder = new SAML2AuthnRequestBuilder();
        val context = buildContext();
        assertNotNull(builder.build(context));
    }
This is {@link SAML2AuthnRequestBuilderTests}.

@author Misagh Moayyed
@since 4.0.0
pac4j-saml/src/test/java/org/pac4j/saml/sso/impl/SAML2AuthnRequestBuilderTests.java