@Test
  public void addAndDeleteWithUnpooledAllocatorTest() throws Exception {
    alloc = constructUnpooledAllocator();
    verifyPoolState(null);
    // test that add segments should be no-op
    Map<String, Map<Long, Long>> requirements = new HashMap<>();
    Map<Long, Long> sizeToFileNum = new HashMap<>();
    sizeToFileNum.put(20L, 4L);
    sizeToFileNum.put(50L, 1L);
    requirements.put(storeId1, sizeToFileNum);
    alloc.addRequiredSegments(requirements, true);
    verifyPoolState(null);
    // test that delete segments should be no-op
    alloc.deleteAllSegmentsForStoreIds(Collections.singletonList(storeId1));
    verifyPoolState(null);
  }
Test the allocator with pooling disabled. Add or delete segments for certain store should be no-op.
@throws Exception
ambry-store/src/test/java/com/github/ambry/store/DiskSpaceAllocatorTest.java