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");