@Test
    void verifyRegisteredServicePresentButDisabled() {
        val service = createRegisteredService(false);
        val context = AuditableContext.builder().registeredService(service).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