public static Cluster clusterWith(int nodes) {
        return clusterWith(nodes, new HashMap<>());
    }
Helper functions for writing unit tests
clients/src/test/java/org/apache/kafka/test/TestUtils.java