private void verifyTableSnapshotSize(Table quotaTable, TableName tn, String snapshotName,
    long expectedSize) throws IOException {
    Result r = quotaTable.get(QuotaTableUtil.makeGetForSnapshotSize(tn, snapshotName));
    CellScanner cs = r.cellScanner();
    assertTrue(cs.advance());
    Cell c = cs.current();
    assertEquals(expectedSize,
      QuotaProtos.SpaceQuotaSnapshot.parseFrom(
        UnsafeByteOperations.unsafeWrap(c.getValueArray(), c.getValueOffset(), c.getValueLength()))
        .getQuotaUsage());
    assertFalse(cs.advance());
  }
Test the quota table helpers (e.g. CRUD operations)
hbase-server/src/test/java/org/apache/hadoop/hbase/quotas/TestQuotaTableUtil.java