server = new ZkServer(dataDir, logDir, defaultNameSpace, zkPort);
server.start();
ClusterSetup setup = new ClusterSetup(zkAddress);
final String clusterName = "file-store-test";
setup.deleteCluster(clusterName);
setup.addCluster(clusterName, true);
setup.addInstanceToCluster(clusterName, "localhost_12001");
setup.addInstanceToCluster(clusterName, "localhost_12002");
setup.addInstanceToCluster(clusterName, "localhost_12003");
setup.addResourceToCluster(clusterName, "repository", 1, "MasterSlave");