@Test
    void verifySync() {
        val appCtx = new StaticApplicationContext();
        appCtx.refresh();
        val chain = new DefaultChainingServiceRegistry(appCtx);
        val registry = new InMemoryServiceRegistry(appCtx);
        chain.addServiceRegistry(registry);
        val service = newService();
        registry.save(service);
        chain.synchronize(service);
        assertEquals(1, registry.size());
    }
This is {@link DefaultChainingServiceRegistryTests}.

@author Misagh Moayyed
@since 6.3.0
core/cas-server-core-services-registry/src/test/java/org/apereo/cas/services/DefaultChainingServiceRegistryTests.java