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

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