// union doesn't have to keep the CH balanced, but it does have to include owners from both CHs
DefaultConsistentHash unionCH = chf.union(updatedMembersCH, rebalancedCH);
for (int l = 0; l < updatedMembersCH.getNumSegments(); l++) {
assertTrue(unionCH.locateOwnersForSegment(l).containsAll(updatedMembersCH.locateOwnersForSegment(l)));
assertTrue(unionCH.locateOwnersForSegment(l).containsAll(rebalancedCH.locateOwnersForSegment(l)));
}
// switch to the new CH in the next iteration
assertEquals(rebalancedCH.getNumSegments(), baseCH.getNumSegments());
assertEquals(rebalancedCH.getNumOwners(), baseCH.getNumOwners());