@Override
    public boolean equals(Object o) {
      if (this == o) {
        return true;
      }
      if (!(o instanceof Names)) {
        return false;
      }
      Names names = (Names) o;
      if (!ns.equals(names.ns)) {
        return false;
      }
      if (!tn.equals(names.tn)) {
        return false;
      }
      return true;
    }
Tests for various kinds of TableNames.
hbase-common/src/test/java/org/apache/hadoop/hbase/TestTableName.java