@Override
  public boolean isProjectManaged(DbSession dbSession, String projectUuid) {
    return findManagedProjectService()
      .map(managedProjectService -> managedProjectService.isProjectManaged(dbSession, projectUuid))
      .orElse(false);
  }
@Test
  public void isProjectManaged_whenManagedInstanceServices_shouldDelegatesToRightService() {
    DelegatingManagedServices managedInstanceService = new DelegatingManagedServices(Set.of(new NeverManagedInstanceService(), new AlwaysManagedInstanceService()));

    assertThat(managedInstanceService.isProjectManaged(dbSession, "whatever")).isTrue();
  }