@Test
    void verifyMergePolicy() {
        val policies = new String[]{"discard", "pass_through", "expiration_time", "higher_hits",
            "latest_update", "latest_access", "put_if_absent", "other"};
        Arrays.stream(policies).forEach(policy -> {
            val hz = new BaseHazelcastProperties();
            hz.getCluster().getCore().setMapMergePolicy(policy);
            val mapConfig = HazelcastConfigurationFactory.buildMapConfig(hz, "mapName", 10);
            assertNotNull(mapConfig);
            assertNotNull(HazelcastConfigurationFactory.build(hz, mapConfig));
        });
    }
This is {@link HazelcastConfigurationFactoryTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-hazelcast-core/src/test/java/org/apereo/cas/hz/HazelcastConfigurationFactoryTests.java