@Test
  public void testAggregatedStatsGeneration() {
    cacheTestBuffers();
    StringBuilder sb = new StringBuilder();
    tracker.debugDumpShort(sb);
    assertEquals(EXPECTED_CACHE_STATE_WHEN_FULL, sb.toString());

    evictSomeTestBuffers();
    sb = new StringBuilder();
    tracker.debugDumpShort(sb);
    assertEquals(EXPECTED_CACHE_STATE_AFTER_EVICTION, sb.toString());
  }
Caches some mock buffers and checks summary produced by CacheContentsTracker. Later this is
done again after some mock buffers were evicted.
llap-server/src/test/org/apache/hadoop/hive/llap/cache/TestCacheContentsTracker.java