@Test
  public void testMetaComparatorTableKeysWithCommaOk() {
    CellComparator c = MetaCellComparator.META_COMPARATOR;
    long now = EnvironmentEdgeManager.currentTime();
    // meta keys values are not quite right. A users can enter illegal values
    // from shell when scanning meta.
    KeyValue a = new KeyValue(Bytes.toBytes("table,key,with,commas1,1234"), now);
    KeyValue b = new KeyValue(Bytes.toBytes("table,key,with,commas2,0123"), now);
    assertTrue(c.compare(a, b) < 0);
  }
Test a corner case when the family qualifier is a prefix of the column qualifier.
hbase-common/src/test/java/org/apache/hadoop/hbase/TestKeyValue.java