@Before
  public void setup() {
    when(mockCompactionControl.apply(any(), anyBoolean())).thenReturn(true);
    when(mockPartitionId.getId()).thenReturn(100L);

    Properties properties = new Properties();
    properties.put("disk.manager.deferred.compaction.default.timer.timeout.milliseconds",
        String.valueOf(diskManagerDeferredCompactionDefaultTimerTimeoutMilliseconds));
    properties.put("disk.manager.deferred.compaction.total.timer.timeout.milliseconds",
        String.valueOf(diskManagerDeferredCompactionTotalTimerTimeoutMilliseconds));
    diskManagerConfig = new DiskManagerConfig(new VerifiableProperties(properties));

    bootstrapSessionManager = new BootstrapSessionManager(diskManagerConfig, mockCompactionControl);
    bootstrapSessionManager.enable();

    bootstrapSessionManagerWithCompactionHandler = new BootstrapSessionManager(diskManagerConfig, (partitionId1, enable) -> {
      if (enable) {
        compactionEnabled.set(true);
      }
      return true;
    });
    bootstrapSessionManagerWithCompactionHandler.enable();
  }
Setup method to initialize the {@link BootstrapSessionManager} and mock objects.
ambry-store/src/test/java/com/github/ambry/store/BootstrapSessionManagerTest.java