{
String inUseProtocolStack = UnitTestConfigurationFactory.getEmptyConfiguration().getClusterConfig();
replListeners = new ReplicationListener[getNumCacheManagers()];
for (int i =0; i < cacheManagers.size(); i++)
{
CacheManager cm = cacheManagers.get(i);
Cache<Object, Object> cache = cm.getCache(getCacheConfigName(), true);
amendCacheBeforeStartup(cache);
if (cache.getCacheStatus() != CacheStatus.STARTED)
{
cache.getConfiguration().setClusterConfig(inUseProtocolStack);
cache.start();