@Test
  public void testLegalTableNamesRegex() {
    for (String tn : legalTableNames) {
      TableName tName = TableName.valueOf(tn);
      assertTrue("Testing: '" + tn + "'",
        Pattern.matches(TableName.VALID_USER_TABLE_REGEX, tName.getNameAsString()));
    }
  }
Test that we add and remove strings from settings properly.
hbase-client/src/test/java/org/apache/hadoop/hbase/client/TestTableDescriptorBuilder.java