@Test(expected = TableNotDisabledException.class)
  public void testTableNotDisabledExceptionWithATable() throws IOException {
    final TableName name = TableName.valueOf(this.name.getMethodName());
    try (Table t = TEST_UTIL.createTable(name, HConstants.CATALOG_FAMILY)) {
      ADMIN.enableTable(name);
    }
  }
Can't enable a table if the table isn't in disabled state
hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestAdmin2.java