@After public void tearDown() throws Exception {
    LOG.info("Purge the cache on tear down");
    cachePolicy.purge();
    allocator = null;
    memoryManager = null;
    cachePolicy = null;
  }
Test the full cycle of allocation/accounting/eviction interactions.
llap-server/src/test/org/apache/hadoop/hive/llap/cache/TestCacheAllocationsEvictionsCycles.java