public void runSimpleTests(boolean isBruteOnly) {
    runSimple1to2Discard(create(1024, 1, 1024, true, isBruteOnly), 256);
    runSimple1to2Discard(create(1024, 1, 1024, false, isBruteOnly), 256);
    runSimple1to2Discard(create(512, 2, 1024, false, isBruteOnly), 256);
  }
This relies on allocations basically being sequential, no internal reordering. Rather,
the specific paths it takes do; all the scenarios should work regardless of allocation.
llap-server/src/test/org/apache/hadoop/hive/llap/cache/TestBuddyAllocatorForceEvict.java