private static void assertBufferEvicted(boolean expectingEvicted, boolean wasProactive, LlapDataBuffer buffer,
      TestLowLevelLrfuCachePolicy.EvictionTracker evictionListener ) {
    assertEquals(expectingEvicted, buffer.isInvalid());
    assertEquals(expectingEvicted && !wasProactive, evictionListener.evicted.contains(buffer));
    assertEquals(expectingEvicted && wasProactive, evictionListener.proactivelyEvicted.contains(buffer));
  }
Test cases for proactive LLAP cache eviction.
llap-server/src/test/org/apache/hadoop/hive/llap/cache/TestProactiveEviction.java