public String getManagedInstanceProviderName() {
    if (managedInstanceService.isInstanceExternallyManaged()) {
      return managedInstanceService.getProviderName();
    }
    return null;
  }
@Test
  public void getManagedInstanceProvider_whenInstanceNotManaged_shouldReturnNull() {
    mockIdentityProviders(List.of());
    mockManagedInstance(false);

    assertThat(commonSystemInformation.getManagedInstanceProviderName())
      .isNull();
  }