TestingUtil.waitForRehashToComplete(cache(0), cache(1), cache(2), cache(3));
assertNull(stm0.getCacheTopology().getPendingCH());
ConsistentHash ch = stm0.getCacheTopology().getCurrentCH();
assertEquals(Arrays.asList(address(0), address(1), address(2), address(3)), ch.getMembers());
for (int i = 0; i < ch.getNumSegments(); i++) {
assertEquals(2, ch.locateOwnersForSegment(i).size());
}
// Suspend rebalancing again
mBeanServer.setAttribute(ltmName1, new Attribute("RebalancingEnabled", false));
assertFalse((Boolean) mBeanServer.getAttribute(ltmName0, "RebalancingEnabled"));