assertOnlyServerHit(expectedServer);
//this would be the next server to be shutdown
expectedServer = strategy.getServers()[strategy.getNextPosition()];
HotRodServer toStop = addr2hrServer.get(expectedServer);
toStop.stop();
for (Iterator<EmbeddedCacheManager> ecmIt = cacheManagers.iterator(); ecmIt.hasNext();) {
if (ecmIt.next().getAddress().equals(expectedServer)) ecmIt.remove();
}
TestingUtil.waitForRehashToComplete(caches());
}