@Test
  public void testScheduleSCP() throws Exception {
    HRegionServer testRs = TEST_UTIL.getRSForFirstRegionInTable(TABLE_NAME);
    try (final Table t = TEST_UTIL.getConnection().getTable(TABLE_NAME)) {
      TEST_UTIL.loadTable(t, Bytes.toBytes("family1"), true);
    }
    ServerName serverName = testRs.getServerName();
    Hbck hbck = getHbck();
    List<Long> pids = hbck.scheduleServerCrashProcedures(Arrays.asList(serverName));
    assertEquals(1, pids.size());
    assertNotEquals((Long) Procedure.NO_PROC_ID, pids.get(0));
    LOG.debug("SCP pid is {}", pids.get(0));

    List<Long> newPids = hbck.scheduleServerCrashProcedures(Arrays.asList(serverName));
    assertEquals(1, pids.size());
    assertEquals((Long) Procedure.NO_PROC_ID, newPids.get(0));
    waitOnPids(pids);
  }
Class to test HBaseHbck. Spins up the minicluster once at test start and then takes it down
afterward. Add any testing of HBaseHbck functionality here.
hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestHbck.java