@Test
  public void testEmptyTableName() {
    for (String tn : emptyNames) {
      assertThrows(IllegalArgumentException.class,
        () -> TableName.isLegalFullyQualifiedTableName(Bytes.toBytes(tn)));
    }
  }
Tests for various kinds of TableNames.
hbase-common/src/test/java/org/apache/hadoop/hbase/TestTableName.java