@Override
  public boolean isUserManaged(DbSession dbSession, String userUuid) {
    return findManagedInstanceService()
      .map(managedInstanceService -> managedInstanceService.isUserManaged(dbSession, userUuid))
      .orElse(false);
  }
@Test
  public void isUserManaged_whenNoDelegates_returnsFalse() {
    DelegatingManagedServices managedInstanceService = new DelegatingManagedServices(Set.of());

    assertThat(managedInstanceService.isUserManaged(dbSession, "whatever")).isFalse();
  }