private void checkSeekingConsistency(List<DataBlockEncoder.EncodedSeeker> encodedSeekers,
    ExtendedCell keyValue, KeyValue expected) {
    for (DataBlockEncoder.EncodedSeeker seeker : encodedSeekers) {
      seeker.seekToKeyInBlock(keyValue, false);
      Cell keyValue2 = seeker.getCell();
      assertEquals(expected, keyValue2);
      seeker.rewind();
    }
  }
Test seeking while file is encoded.
hbase-server/src/test/java/org/apache/hadoop/hbase/io/encoding/TestSeekToBlockWithEncoders.java