@Override
  public List<String> getEnabledWorkerUuids() {
    Set<CeWorker> workers = ceWorkerFactory.getWorkers();
    return workers.stream()
      .filter(ceWorkerController::isEnabled)
      .map(CeWorker::getUUID)
      .sorted()
      .toList();
  }
@Test
  public void getEnabledWorkerUuids_returns_ordered_list_of_uuids_of_worker_from_CeWorkerFactory_instance_filtered_on_enabled_ones() {
    int enabledWorkerCount = new Random().nextInt(WORKERS.size());
    int i = 0;
    CeWorker[] enabledWorkers = new CeWorker[enabledWorkerCount];
    for (CeWorker worker : WORKERS) {
      if (i < enabledWorkerCount) {
        enabledWorkers[i] = worker;
        when(ceWorkerController.isEnabled(worker)).thenReturn(true);
      } else {
        when(ceWorkerController.isEnabled(worker)).thenReturn(false);
      }
      i++;
    }

    List<String> enabledWorkerUuids = underTest.getEnabledWorkerUuids();

    assertThat(enabledWorkerUuids)
      .isEqualTo(Stream.of(enabledWorkers).map(CeWorker::getUUID).sorted().toList())
      // ImmutableSet can not be serialized
      .isNotInstanceOf(ImmutableSet.class);
  }