replicaMap.put(ParticipantId.from("localhost_12918"), State.from("MASTER"));
replicaMap.put(ParticipantId.from("localhost_12919"), State.from("SLAVE"));
replicaMap.put(ParticipantId.from("localhost_12920"), State.from("SLAVE"));
replicaMap.put(ParticipantId.from("localhost_12921"), State.from("OFFLINE"));
replicaMap.put(ParticipantId.from("localhost_12922"), State.from("DROPPED"));
assignment.addReplicaMap(PartitionId.from(testDB_0), replicaMap);
bestPossibleStates.setResourceAssignment(ResourceId.from(testDB), assignment);
Map<String, InstanceConfig> instanceConfigMap = Maps.newHashMap();
for (int i = 0; i < n; i++) {
String instanceName = "localhost_" + (12918 + i);