@Ignore
  // TODO test in besDAO
  @Test(expected = ConfigurationException.class)
  public void testAuthenticateAdministrator_SSO_WithoutConfiguredPassword() throws Throwable {

    proxyConfigSettings.put(PlatformConfigurationKey.BSS_AUTH_MODE.name(), "SAML_SP");
    proxyConfigSettings.put(PlatformConfigurationKey.BSS_USER_PWD.name(), null);

    authService.authenticateAdministrator(new PasswordAuthentication("admin", "admin123"));
  }
  @Ignore
  // TODO test in besDAO
  @Test(expected = ConfigurationException.class)
  public void testAuthenticate_MalformedUrl() throws Throwable {

    // applyDefaultAPPCredentials();
    proxyConfigSettings.put(PlatformConfigurationKey.BSS_WEBSERVICE_URL.name(), "http");
    proxyConfigSettings.put(PlatformConfigurationKey.BSS_AUTH_MODE.name(), "INTERNAL");
    try {
      besDAO.getBESWebService(IdentityService.class, null);
    } catch (ConfigurationException e) {
      assertEquals(PlatformConfigurationKey.BSS_WEBSERVICE_URL.name(), e.getAffectedKey());
      throw e;
    }
  }
  @Ignore
  // TODO test in besDAO
  @Test(expected = ConfigurationException.class)
  public void testAuthenticateTMForInstance_SSO_withoutConfiguredPassword() throws Throwable {

    proxyConfigSettings.put(PlatformConfigurationKey.BSS_AUTH_MODE.name(), "SAML_SP");
    VOUserDetails supplier = createVOUserDetails(10000, "supplier", "tp123");
    controllerConfigSettings.put(ControllerConfigurationKey.BSS_USER_PWD.name(), null);
    // do not add instance specific TP credentials
    createServiceInstance(ProvisioningStatus.COMPLETED, InstanceParameter.PUBLIC_IP);

    authenticateTMForInstance(CTRL_ID, "appInstanceId", supplier.getUserId(), "secret");
    UserBase userBase = new UserBase();
    userBase.addUser(supplier, "secret");
    identityService = userBase.mockIdentityService();
  }
 Map<String, String> getProxySettingsForMode(String authMode) {
   Map<String, String> settings = new HashMap<>();
   settings.put(PlatformConfigurationKey.BSS_AUTH_MODE.name(), authMode);
   return settings;
 }