private static void deleteTables() {
    if (admin != null) {
      for (TableName tableName : createdTables) {
        try {
          if (admin.tableExists(tableName)) {
            admin.disableTable(tableName);
            admin.deleteTable(tableName);
          }
        } catch (IOException e) {
          assertNull("Exception found deleting the table", e);
        }
      }
    }
  }
By using this class as the super class of a set of tests you will have a HBase testing cluster
available that is very suitable for writing tests for scanning and filtering against.
hbase-server/src/test/java/org/apache/hadoop/hbase/filter/FilterTestingCluster.java