@Test
    void verifyResolverAsAggregate() throws Throwable {
        val c = new X509CertificateCredential(new X509Certificate[]{VALID_CERTIFICATE});
        c.setCertificate(VALID_CERTIFICATE);
        val result = authenticationManager.authenticate(
            CoreAuthenticationTestUtils.getAuthenticationTransactionFactory().newTransaction(c));
        assertNotNull(result);
        val attributes = result.getPrincipal().getAttributes();
        assertTrue(attributes.containsKey("subjectX500Principal"));
        assertTrue(attributes.containsKey("groovySubjectX500Principal"));
    }
@author Scott Battaglia
@author Jan Van der Velpen
@since 3.0.0
support/cas-server-support-x509/src/test/java/org/apereo/cas/adaptors/x509/X509SubjectDNPrincipalResolverAggregateTests.java