@Override
    public boolean isReady(Node node, long now) {
        return connectionState(node.idString()).isReady(now);
    }
A mock network client for use testing code
clients/src/test/java/org/apache/kafka/clients/MockClient.java