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();
ReflectionTestUtils.setField(spiedRegionService, "cacheManager", cacheManager);
net.sf.ehcache.CacheManager ehCacheManager = (net.sf.ehcache.CacheManager) ReflectionTestUtils.getField(cacheManager, "cacheManager");
ehCacheManager.addCache("regions");