private void check(final byte[] row, final byte[] family, byte[] qualifier, final long timestamp,
    final byte[] value) {
    KeyValue kv = new KeyValue(row, family, qualifier, timestamp, value);
    assertTrue(
      Bytes.compareTo(kv.getRowArray(), kv.getRowOffset(), kv.getRowLength(), row, 0, row.length)
          == 0);
    assertTrue(CellUtil.matchingColumn(kv, family, qualifier));
    // Call toString to make sure it works.
    LOG.info(kv.toString());
  }
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