@Override
  public long getPeriod() {
    return config.getLong(PERIOD_IN_MILISECONDS_PROPERTY).orElse(10_000L);
  }
@Test
  public void getPeriod_returnNumberFromConfig() {
    config.put("sonar.server.monitoring.other.period", "100000");

    long delay = underTest.getPeriod();

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