@Override
  public long getPeriod() {
    return config.getLong(PERIOD_IN_MILISECONDS_PROPERTY).orElse(300_000L);
  }
@Test
  public void getPeriod_returnNumberFromConfig() {
    when(config.getLong("sonar.server.monitoring.devops.period")).thenReturn(Optional.of(100_000L));

    long delay = underTest.getPeriod();

    assertThat(delay).isEqualTo(100_000L);
  }