@Override
        public boolean registerStateModelFactory(String stateModelDef,
            StateModelFactory<? extends StateModel> factory) {
          MockHelixManager.this.stateModelDef = stateModelDef;
          stateModelFactory = factory;
          return true;
        }
A mock implementation of the {@link HelixManager} for exclusive use for testing the {@link HelixParticipant}
ambry-clustermap/src/test/java/com/github/ambry/clustermap/MockHelixManagerFactory.java