@Test
  public void testRpcThrottleWhenStartup() throws IOException, InterruptedException {
    TEST_UTIL.getAdmin().switchRpcThrottle(false);
    assertFalse(TEST_UTIL.getAdmin().isRpcThrottleEnabled());
    TEST_UTIL.killMiniHBaseCluster();

    TEST_UTIL.startMiniHBaseCluster();
    assertFalse(TEST_UTIL.getAdmin().isRpcThrottleEnabled());
    for (JVMClusterUtil.RegionServerThread rs : TEST_UTIL.getHBaseCluster()
      .getRegionServerThreads()) {
      RegionServerRpcQuotaManager quotaManager =
        rs.getRegionServer().getRegionServerRpcQuotaManager();
      assertFalse(quotaManager.isRpcThrottleEnabled());
    }
    // enable rpc throttle
    TEST_UTIL.getAdmin().switchRpcThrottle(true);
    assertTrue(TEST_UTIL.getAdmin().isRpcThrottleEnabled());
  }
minicluster tests that validate that quota entries are properly set in the quota table
hbase-server/src/test/java/org/apache/hadoop/hbase/quotas/TestQuotaAdmin.java