@Before
  public void setup() throws IOException {
    TEST_UTIL.ensureSomeRegionServersAvailable(2);
  }
Start up a mini cluster and put a small table of many empty regions into it.
hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestMasterTransitions.java