private static RegisteredService createRegisteredService(final boolean enabled) {
        val service = new CasRegisteredService();
        val accessStrategy = new DefaultRegisteredServiceAccessStrategy();
        accessStrategy.setEnabled(enabled);
        service.setAccessStrategy(accessStrategy);
        return service;
    }
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