@Test
  public void testIllegalTableNames() {
    for (String tn : illegalTableNames) {
      try {
        TableName.isLegalFullyQualifiedTableName(Bytes.toBytes(tn));
        fail("invalid tablename " + tn + " should have failed");
      } catch (Exception e) {
        // expected
      }
    }
  }
Test that we add and remove strings from settings properly.
hbase-client/src/test/java/org/apache/hadoop/hbase/client/TestTableDescriptorBuilder.java