@Test
  public void testRegionServerUnThrottleByType() throws Exception {
    final Admin admin = TEST_UTIL.getAdmin();
    final String[] REGIONSERVER = { "RS01", "RS02" };

    admin.setQuota(QuotaSettingsFactory.throttleRegionServer(REGIONSERVER[0],
      ThrottleType.READ_NUMBER, 4, TimeUnit.MINUTES));
    admin.setQuota(QuotaSettingsFactory.throttleRegionServer(REGIONSERVER[0],
      ThrottleType.WRITE_NUMBER, 4, TimeUnit.MINUTES));
    admin.setQuota(QuotaSettingsFactory.throttleRegionServer(REGIONSERVER[1],
      ThrottleType.READ_NUMBER, 4, TimeUnit.MINUTES));
    admin.setQuota(QuotaSettingsFactory.throttleRegionServer(REGIONSERVER[1],
      ThrottleType.WRITE_NUMBER, 4, TimeUnit.MINUTES));

    admin.setQuota(QuotaSettingsFactory.unthrottleRegionServerByThrottleType(REGIONSERVER[0],
      ThrottleType.READ_NUMBER));
    assertEquals(3, getQuotaSettingCount(admin));
    admin.setQuota(QuotaSettingsFactory.unthrottleRegionServerByThrottleType(REGIONSERVER[0],
      ThrottleType.WRITE_NUMBER));
    assertEquals(2, getQuotaSettingCount(admin));
    admin.setQuota(QuotaSettingsFactory.unthrottleRegionServer(REGIONSERVER[1]));
    assertEquals(0, getQuotaSettingCount(admin));
  }
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