MockParticipant[] participants = new MockParticipant[n];
for (int i = 0; i < n; i++) {
String instanceName = "localhost_" + (12918 + i);
if (i == 0) {
participants[i] = new MockParticipant(clusterName,
instanceName, ZK_ADDR, new ErrTransition(errPartitions));
} else {
participants[i] = new MockParticipant(clusterName,
instanceName, ZK_ADDR);
}
participants[i].syncStart();
}