@Override
  public void queueSynchronisationTask() {
    findManagedInstanceService()
      .ifPresent(ManagedInstanceService::queueSynchronisationTask);
  }
@Test
  public void queueSynchronisationTask_whenManagedInstanceServices_shouldDelegatesToRightService() {
    NeverManagedInstanceService neverManagedInstanceService = spy(new NeverManagedInstanceService());
    AlwaysManagedInstanceService alwaysManagedInstanceService = spy(new AlwaysManagedInstanceService());
    Set<ManagedInstanceService> delegates = Set.of(neverManagedInstanceService, alwaysManagedInstanceService);
    DelegatingManagedServices managedInstanceService = new DelegatingManagedServices(delegates);

    managedInstanceService.queueSynchronisationTask();
    verify(neverManagedInstanceService, never()).queueSynchronisationTask();
    verify(alwaysManagedInstanceService).queueSynchronisationTask();
  }