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

    long delay = underTest.getPeriod();

    assertThat(delay).isPositive();
  }