@Test
  public void testCompactATableWithSuperLongTableName() throws Exception {
    TableName tableName = TableName.valueOf(name.getMethodName());
    TableDescriptor htd = TableDescriptorBuilder.newBuilder(tableName)
      .setColumnFamily(ColumnFamilyDescriptorBuilder.of("fam1")).build();
    try {
      ADMIN.createTable(htd);
      assertThrows(IllegalArgumentException.class,
        () -> ADMIN.majorCompactRegion(tableName.getName()));

      assertThrows(IllegalArgumentException.class,
        () -> ADMIN.majorCompactRegion(Bytes.toBytes("abcd")));
    } finally {
      ADMIN.disableTable(tableName);
      ADMIN.deleteTable(tableName);
    }
  }
Class to test HBaseAdmin. Spins up the minicluster once at test start and then takes it down
afterward. Add any testing of HBaseAdmin functionality here.
hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestAdmin1.java