private int countResults(final QuotaFilter filter) throws Exception {
    try (QuotaRetriever scanner = new QuotaRetriever(TEST_UTIL.getConnection(), filter)) {
      int count = 0;
      for (QuotaSettings settings : scanner) {
        LOG.debug(Objects.toString(settings));
        count++;
      }
      return count;
    }
  }
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