public class TestClusterCompiler extends TestCase
{
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
// assertEquals(1, partitions.size());
// // All the execution sites should have the same relative index
// int part_guid = CatalogUtil.getPartitionById(cluster, 0).getRelativeIndex();