@Test(timeout = 30000)
public void testIncrementSafeBlockCount() {

  bmSafeMode.activate(BLOCK_TOTAL);
  Whitebox.setInternalState(bmSafeMode, "extension", 0);
  for (long i = 1; i <= BLOCK_TOTAL; i++) {
    BlockInfo blockInfo = mock(BlockInfo.class);
    doReturn(false).when(blockInfo).isStriped();
    bmSafeMode.incrementSafeBlockCount(1, blockInfo);
    assertSafeModeIsLeftAtThreshold(i);
  }
}