@Test
  public void testTableUnThrottleByType() throws Exception {
    final Admin admin = TEST_UTIL.getAdmin();
    final String userName = User.getCurrent().getShortName();
    // Add 6req/min limit
    admin.setQuota(QuotaSettingsFactory.throttleTable(TABLE_NAMES[0], ThrottleType.REQUEST_NUMBER,
      6, TimeUnit.MINUTES));
    admin.setQuota(QuotaSettingsFactory.throttleTable(TABLE_NAMES[0], ThrottleType.REQUEST_SIZE, 6,
      TimeUnit.MINUTES));
    admin.setQuota(QuotaSettingsFactory.throttleTable(TABLE_NAMES[1], ThrottleType.REQUEST_NUMBER,
      6, TimeUnit.MINUTES));
    admin.setQuota(QuotaSettingsFactory.throttleTable(TABLE_NAMES[1], ThrottleType.REQUEST_SIZE, 6,
      TimeUnit.MINUTES));
    admin.setQuota(QuotaSettingsFactory.unthrottleTableByThrottleType(TABLE_NAMES[0],
      ThrottleType.REQUEST_NUMBER));
    assertEquals(3, getQuotaSettingCount(admin));
    admin.setQuota(QuotaSettingsFactory.unthrottleTableByThrottleType(TABLE_NAMES[0],
      ThrottleType.REQUEST_SIZE));
    assertEquals(2, getQuotaSettingCount(admin));
    admin.setQuota(QuotaSettingsFactory.unthrottleTable(TABLE_NAMES[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