{
public void testNonZeroReplicationFactor()
{
ClusterConfig config = new ClusterConfig(3, 1, 2, "localhost");
Catalog catalog = new Catalog();
catalog.execute("add / clusters cluster");
ClusterCompiler.compile(catalog, config);
System.out.println(catalog.serialize());
Cluster cluster = catalog.getClusters().get("cluster");
Collection<Partition> partitions = CatalogUtil.getAllPartitions(cluster);
// despite 3 hosts, should only have 1 partition with k-safety of 2