@CheckForNull
  public String getExternalUserAuthentication() {
    SecurityRealm realm = securityRealmFactory.getRealm();
    return realm == null ? null : realm.getName();
  }
@Test
  public void getExternalUserAuthentication_whenNotDefined_shouldReturnNull() {
    assertThat(commonSystemInformation.getExternalUserAuthentication())
      .isNull();
  }