@Override
  public void start() {
    this.executorService.scheduleAtFixedRate(this::tryBroadcastEvents, getInitialDelay(), getPeriod(), TimeUnit.SECONDS);
  }
@Test
  public void scheduler_should_be_resilient_to_failures() {
    when(clientsRegistry.getClients()).thenThrow(new RuntimeException("I have a bad feelings about this"));

    var underTest = new PushEventPollScheduler(executorService, clientsRegistry, db.getDbClient(), system2, config);
    underTest.start();

    assertThatCode(executorService::runCommand)
      .doesNotThrowAnyException();

    verify(clientsRegistry, times(0)).broadcastMessage(any(SonarLintPushEvent.class));
  }