@BeforeEach
    void initialize() {
        val properties = new BaseHazelcastProperties();
        properties.getCluster().getCore().setInstanceName(getClass().getSimpleName());
        val config = HazelcastConfigurationFactory.build(properties,
            HazelcastConfigurationFactory.buildMapConfig(properties, "cache", 10));
        this.hz = HazelcastInstanceFactory.getOrCreateHazelcastInstance(config);
        mgr = new RegisteredServiceHazelcastDistributedCacheManager(this.hz, hz.getMap("cache"));
    }
This is {@link RegisteredServiceHazelcastDistributedCacheManagerTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-service-registry-stream-hazelcast/src/test/java/org/apereo/cas/services/RegisteredServiceHazelcastDistributedCacheManagerTests.java