Node[] ns = new Node[nodes];
for (int i = 0; i < nodes; i++)
ns[i] = new Node(0, "localhost", 1969);
List<PartitionInfo> parts = new ArrayList<PartitionInfo>();
for (int i = 0; i < partitions; i++)
parts.add(new PartitionInfo(topic, i, ns[i % ns.length], ns, ns));
return new Cluster(asList(ns), parts);
}