public boolean shouldRebalance() {
        return shouldRebalance;
    }
Schedule a task to be executed during a poll(). One enqueued task will be executed per {@link #poll(Duration)}
invocation. You can use this repeatedly to mock out multiple responses to poll invocations.
@param task the task to be executed
clients/src/main/java/org/apache/kafka/clients/consumer/MockConsumer.java