public static Stream<Arguments> getTestParameters() throws Exception {
        return Stream.of(
            /*
             * test with cert with EDIPI and no alternate
             */
            arguments(
                getCertificateFrom("/edipi.cer"),
                "1234567890",
                null,
                new EDIPIX509AttributeExtractor(),
                true
            ),

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

            /*
             * test with cert with EDIPI and no alternate, default attribute extractor
             */
            arguments(
                getCertificateFrom("/edipi.cer"),
                "1234567890",
                null,
                new DefaultX509AttributeExtractor(),
                false
            ),

            /*
             * Test with no subject dn name and alternate.
             */
            arguments(
                new CasX509Certificate(true).setSubjectDn(StringUtils.EMPTY),
                "CN=Jasig,DC=jasig,DC=org",
                "issuerDn",
                new EDIPIX509AttributeExtractor(),
                false
            ),

            /*
             * Test with no common name, and alternate.
             */
            arguments(
                new CasX509Certificate(true).setSubjectDn("sample-subject-dn"),
                "CN=Jasig,DC=jasig,DC=org",
                "issuerDn",
                new EDIPIX509AttributeExtractor(),
                false
            )
        );

    }
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/X509CommonNameEDIPIPrincipalResolverTests.java