boolean isPreviousDurationCloserToGoal(long previousDuration, long currentDuration) {
    return Math.abs(GOAL_MILLISECONDS_PER_PASSWORD - previousDuration)
        < Math.abs(GOAL_MILLISECONDS_PER_PASSWORD - currentDuration);
  }
@Test
  void findCloserToShouldReturnGoalIfNumber2IsEqualGoal() {
    // given
    int number1 = 999;
    int number2 = 1000;

    // when
    boolean actual = bcCryptWorkFactorService.isPreviousDurationCloserToGoal(number1, number2);

    // then
    assertThat(actual).isFalse();
  }