private void testSwitchRpcThrottle(Admin admin, boolean oldRpcThrottle, boolean newRpcThrottle)
    throws IOException {
    boolean state = admin.switchRpcThrottle(newRpcThrottle);
    Assert.assertEquals(oldRpcThrottle, state);
    Assert.assertEquals(newRpcThrottle, admin.isRpcThrottleEnabled());
    TEST_UTIL.getHBaseCluster().getRegionServerThreads().stream()
      .forEach(rs -> Assert.assertEquals(newRpcThrottle,
        rs.getRegionServer().getRegionServerRpcQuotaManager().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