@Test
  public void testHFileContextBuilderWithIndexEncoding() throws IOException {
    HFileContext context =
      new HFileContextBuilder().withIndexBlockEncoding(IndexBlockEncoding.PREFIX_TREE).build();
    HFileContext newContext = new HFileContextBuilder(context).build();
    assertTrue(newContext.getIndexBlockEncoding() == IndexBlockEncoding.PREFIX_TREE);
  }
Test case for CombinedBlockCache with AdaptiveLRU as L1 cache
hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/TestHFile.java