DynamicCacheConfig implements ClusterConstants { protected String[] getClusterURIs() { return config.getClusterURIs(); }  @Bean org.springframework.cache.CacheManager cacheManager(); @Bean SpringManagedContext managedContext(); @Bean HazelcastInstance hazelcastInstance(); @Bean TopicSubscriber topicSubscriber(); @SuppressWarnings("PointlessArithmeticExpression") @Bean CacheConfigHolder cacheConfigMap();  }
@Test public void testClusterConfig() { Config config = new Config() { @Override public PropertiesWrapper getClusterProperties() { PropertiesWrapper mock = mock(PropertiesWrapper.class); when(mock.getProperty(PROP_CLUSTER_MEMBERS)).thenReturn("10.10.10.10;10.10.10.20,10.10.10.30"); return mock; } }; final String[] clusterURIs = config.getClusterURIs(); assertThat(clusterURIs[0]).isEqualTo("10.10.10.10"); assertThat(clusterURIs[1]).isEqualTo("10.10.10.20"); assertThat(clusterURIs[2]).isEqualTo("10.10.10.30"); }