ClusterStateVerifier.verifyByZkCallback(new BestPossAndExtViewZkVerifier(_zkaddr,
clusterName, errStates));
Assert.assertTrue(result);
// check state-models in state-machine
HelixStateMachineEngine stateMachine =
(HelixStateMachineEngine) participants[0].getStateMachineEngine();
StateTransitionHandlerFactory<? extends TransitionHandler> fty =
stateMachine.getStateModelFactory(StateModelDefId.from("MasterSlave"));
Map<PartitionId, String> expectStateModelMap = new TreeMap<PartitionId, String>();
expectStateModelMap.put(PartitionId.from("TestDB0_0"), "ERROR");
expectStateModelMap.put(PartitionId.from("TestDB0_1"), "MASTER");
expectStateModelMap.put(PartitionId.from("TestDB0_2"), "SLAVE");
expectStateModelMap.put(PartitionId.from("TestDB0_3"), "MASTER");