message.setTgtName("localhost");
message.setStateModelDef("MasterSlave");
message.setStateModelFactoryName(HelixConstants.DEFAULT_STATE_MODEL_FACTORY);
MockStateModel stateModel = new MockStateModel();
NotificationContext context;
MockManager manager = new MockManager("clusterName");
// DataAccessor accessor = manager.getDataAccessor();
HelixDataAccessor accessor = manager.getHelixDataAccessor();
StateModelConfigGenerator generator = new StateModelConfigGenerator();
StateModelDefinition stateModelDef = new StateModelDefinition(
generator.generateConfigForMasterSlave());
Builder keyBuilder = accessor.keyBuilder();
accessor.setProperty(keyBuilder.stateModelDef("MasterSlave"), stateModelDef);