@Override
    public void connect() throws Exception {
      if (beBad) {
        throw new IOException("Being bad");
      }

      isConnected = 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