@Test
  public void testCacheConfigDefaultLRUBlockCache() {
    CacheConfig cc = new CacheConfig(this.conf);
    assertTrue(CacheConfig.DEFAULT_IN_MEMORY == cc.isInMemory());
    BlockCache blockCache = BlockCacheFactory.createBlockCache(this.conf);
    basicBlockCacheOps(blockCache, cc, false, true);
    assertTrue(blockCache instanceof LruBlockCache);
  }
@param bc       The block cache instance.
@param cc       Cache config.
@param doubling If true, addition of element ups counter by 2, not 1, because element added to
                onheap and offheap caches.
@param sizing   True if we should run sizing test (doesn't always apply).
hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/TestCacheConfig.java