public void resetFlags() {
      preBalanceRSGroupCalled = false;
      postBalanceRSGroupCalled = false;
      preMoveServersCalled = false;
      postMoveServersCalled = false;
      preMoveTablesCalled = false;
      postMoveTablesCalled = false;
      preAddRSGroupCalled = false;
      postAddRSGroupCalled = false;
      preRemoveRSGroupCalled = false;
      postRemoveRSGroupCalled = false;
      preRemoveServersCalled = false;
      postRemoveServersCalled = false;
      preMoveServersAndTables = false;
      postMoveServersAndTables = false;
      preGetRSGroupInfoCalled = false;
      postGetRSGroupInfoCalled = false;
      preGetRSGroupInfoOfTableCalled = false;
      postGetRSGroupInfoOfTableCalled = false;
      preListRSGroupsCalled = false;
      postListRSGroupsCalled = false;
      preGetRSGroupInfoOfServerCalled = false;
      postGetRSGroupInfoOfServerCalled = false;
      preSetRSGroupForTablesCalled = false;
      postSetRSGroupForTablesCalled = false;
      preListTablesInRSGroupCalled = false;
      postListTablesInRSGroupCalled = false;
      preGetConfiguredNamespacesAndTablesInRSGroupCalled = false;
      postGetConfiguredNamespacesAndTablesInRSGroupCalled = false;
      preRenameRSGroup = false;
      postRenameRSGroup = false;
      preUpdateRSGroupConfig = false;
      postUpdateRSGroupConfig = false;
    }
The server name in group does not contain the start code, this method will find out the start
code and construct the ServerName object.
hbase-server/src/test/java/org/apache/hadoop/hbase/rsgroup/TestRSGroupsBase.java