@Test
  public void unpooledAllocatorTest() throws Exception {
    alloc = constructUnpooledAllocator();
    verifyPoolState(null);
    File f1 = allocateAndVerify(storeId0, "file1", 20, false);
    verifyPoolState(null);
    freeAndVerify(storeId0, f1, 20, false);
    verifyPoolState(null);

    // initializing should be a no-op
    alloc.initializePool(Collections.singletonList(new DiskSpaceRequirements(storeId0, 20, 1, 0)));
    verifyPoolState(null);
    File f2 = allocateAndVerify(storeId0, "file2", 20, false);
    verifyPoolState(null);
    freeAndVerify(storeId0, f2, 20, false);
    verifyPoolState(null);
  }
Test the allocator with pooling disabled. The reserve file pool should never be created
ambry-store/src/test/java/com/github/ambry/store/DiskSpaceAllocatorTest.java