public static Stream<Arguments> getTestParameters() {
        return Stream.of(
            /* test with cert with UPN and no alternate */
            arguments(
                "/x509-san-upn-resolver.crt",
                "test-user@some-company-domain",
                null
            ),

            /* test with alternate parameter and cert with UPN */
            arguments(
                "/x509-san-upn-resolver.crt",
                "test-user@some-company-domain",
                "subjectDn"
            ),

            /* test with alternate parameter and cert without UPN */
            arguments(
                "/user-valid.crt",
                "CN=Alice, OU=CAS, O=Jasig, L=Westminster, ST=Colorado, C=US",
                "subjectDn"
            ),

            /* test with bad alternate parameter and cert without UPN */
            arguments(
                "/user-valid.crt",
                null,
                "badAttribute"
            )
        );

    }
Gets the unit test parameters.

@return Test parameter data.
support/cas-server-support-x509-core/src/test/java/org/apereo/cas/adaptors/x509/authentication/principal/X509SubjectAlternativeNameUPNPrincipalResolverTests.java