public boolean canRebalance() {
        return PREPARING_REBALANCE.validPreviousStates().contains(state);
    }
@Test
    public void testCanRebalanceWhenStable() {
        assertTrue(group.canRebalance());
    }