private static X509Certificate getCertificate(final String certLocation) throws Exception {
        return (X509Certificate) CertificateFactory.getInstance("X509").generateCertificate(
                ResourceUtils.getRawResourceFrom(certLocation).getInputStream());
    }
Test cases for {@link EDIPIX509AttributeExtractor}.
@author Hal Deadman
@since 6.4.0
support/cas-server-support-x509-core/src/test/java/org/apereo/cas/adaptors/x509/authentication/principal/EDIPIX509AttributeExtractorTests.java