public static BuddyAllocator create(int max, int arenas, int total, boolean isShortcut,
      boolean isBruteForceOnly) {
     BuddyAllocator result = new BuddyAllocator(false, false, 8, max, arenas, total, 0,
         null, MM, METRICS, isBruteForceOnly ? "brute" : null, true);
     if (!isShortcut) {
       result.disableDefragShortcutForTest();
     }
     result.setOomLoggingForTest(false);
     return result;
  }
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