@Test
    void verifyWAN() {
        val hz = new BaseHazelcastProperties();
        hz.getCluster().getWanReplication().setEnabled(true);
        assertThrows(IllegalArgumentException.class, () -> HazelcastConfigurationFactory.build(hz));
        hz.getCore().setLicenseKey(UUID.randomUUID().toString());
        hz.getCluster().getWanReplication().getTargets()
            .add(new HazelcastWANReplicationTargetClusterProperties()
                .setClusterName(UUID.randomUUID().toString())
                .setEndpoints("127.0.0.1")
                .setPublisherId(UUID.randomUUID().toString()));
        val result = HazelcastConfigurationFactory.build(hz);
        assertNotNull(result);
    }
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