@Override
    public Endpoints leaderEndpoints() {
        return endpoints;
    }
@Test
    void testLeaderEndpoints() {
        ResignedState state = newResignedState(Utils.mkSet(1, 2, 3));

        assertEquals(localEndpoints, state.leaderEndpoints());
        assertNotEquals(Endpoints.empty(), state.leaderEndpoints());
    }