@Override
    public ResourceBasedServiceRegistry getNewServiceRegistry() {
        val appCtx = new StaticApplicationContext();
        appCtx.refresh();
        newServiceRegistry = new YamlServiceRegistry(RESOURCE,
            WatcherService.noOp(),
            appCtx,
            new NoOpRegisteredServiceReplicationStrategy(),
            new DefaultRegisteredServiceResourceNamingStrategy(),
            new ArrayList<>());
        return newServiceRegistry;
    }
Test cases for {@link YamlServiceRegistry}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-yaml-service-registry/src/test/java/org/apereo/cas/services/YamlServiceRegistryTests.java