public void before() {
}
@Test
public void testGetRegionsInCluster() throws IOException {
Config spiedConfig = spy(config);
when(spiedConfig.isClustered()).thenReturn(true);
when(spiedConfig.getRegion()).thenReturn("TEST_REGION");
RegionService spiedRegionService = spy(regionService);
spiedRegionService.setConfig(spiedConfig);
curAddress = removeScopedMarkerFromIP(NetworkUtils.DEFAULT_LOCAL_ADDRESSES.get(0).getHostAddress());
when(spiedConfig.getClusterURIs()).thenReturn(new String[]{curAddress, "210.10.10.1"});
DynamicCacheConfig cacheConfig = new DynamicCacheConfig();
ReflectionTestUtils.setField(cacheConfig, "config", spiedConfig);
cacheManager = cacheConfig.dynamicCacheManager();
cacheManager.afterPropertiesSet();