private static X509Certificate getCertificateFrom(final String certPath) throws Exception {
        val certLocation = X509CommonNameEDIPIPrincipalResolverTests.class.getResource(certPath).getPath();
        return FunctionUtils.doUnchecked(() -> {
            try (val in = new FileInputStream(certLocation)) {
                return (X509Certificate) CertificateFactory.getInstance("X509").generateCertificate(in);
            }
        });
    }
This is {@link X509CommonNameEDIPIPrincipalResolverTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-x509-core/src/test/java/org/apereo/cas/adaptors/x509/authentication/principal/X509CommonNameEDIPIPrincipalResolverTests.java