stateModelFactory = new DummyStateModelFactory(_transDelayInMs);
DummyLeaderStandbyStateModelFactory stateModelFactory1 =
new DummyLeaderStandbyStateModelFactory(_transDelayInMs);
DummyOnlineOfflineStateModelFactory stateModelFactory2 =
new DummyOnlineOfflineStateModelFactory(_transDelayInMs);
StateMachineEngine stateMach = manager.getStateMachineEngine();
stateMach.registerStateModelFactory(StateModelDefId.MasterSlave, stateModelFactory);
stateMach.registerStateModelFactory(StateModelDefId.LeaderStandby, stateModelFactory1);
stateMach.registerStateModelFactory(StateModelDefId.OnlineOffline, stateModelFactory2);
manager.connect();
return manager;
}