@Test
    void verifyStRejectedPrincipalAttributes() {
        val service = createRegisteredService(true);
        ((DefaultRegisteredServiceAccessStrategy) service.getAccessStrategy()).setRejectedAttributes(reject(false));
        val context = AuditableContext.builder()
            .registeredService(service)
            .serviceTicket(createServiceTicket())
            .authenticationResult(createAuthenticationResult())
            .build();
        val result = executeAccessStrategy(context);
        assertTrue(result.isExecutionFailure());
        assertTrue(result.getException().isPresent());
    }
Class to test {@link RegisteredServiceAccessStrategyAuditableEnforcer}.

@author Travis Schmidt
@since 6.1.0
core/cas-server-core-services-api/src/test/java/org/apereo/cas/services/util/RegisteredServiceAccessStrategyAuditableEnforcerTests.java