@Test public void testWanReplicationConfig() { WanReplicationConfig wcfg = config.getWanReplicationConfig("testWan"); assertNotNull(wcfg); assertEquals(2, wcfg.getTargetClusterConfigs().size()); WanTargetClusterConfig targetCfg = wcfg.getTargetClusterConfigs().get(0); assertNotNull(targetCfg); assertEquals("tokyo", targetCfg.getGroupName()); assertEquals("tokyo-pass", targetCfg.getGroupPassword()); assertEquals("com.hazelcast.wan.WanNoDelayReplication", targetCfg.getReplicationImpl()); assertEquals(2, targetCfg.getEndpoints().size()); assertEquals("10.2.1.1:5701", targetCfg.getEndpoints().get(0)); assertEquals("10.2.1.2:5701", targetCfg.getEndpoints().get(1)); assertEquals(wanReplication, wcfg.getTargetClusterConfigs().get(1).getReplicationImplObject()); }