@Override
  public void queuePermissionSyncTask(String submitterUuid, String componentUuid, String projectUuid) {
    findManagedProjectService()
      .ifPresent(managedProjectService -> managedProjectService.queuePermissionSyncTask(submitterUuid, componentUuid, projectUuid));
  }
@Test
  public void queuePermissionSyncTask_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.queuePermissionSyncTask("userUuid", "componentUuid", "projectUuid");
    verify(neverManagedInstanceService, never()).queuePermissionSyncTask(anyString(), anyString(), anyString());
    verify(alwaysManagedInstanceService).queuePermissionSyncTask("userUuid", "componentUuid", "projectUuid");
  }