@Test
void testServerUrl()
{

  Properties properties = new Properties();
  String serverUrl = "https://middleware";
  properties.setProperty(ConfigHolder.KEY_SERVER_URL, serverUrl);
  ConfigHolder configHolder = new ConfigHolder(properties);
  Assertions.assertEquals(serverUrl + ContextPaths.EIDAS_CONTEXT_PATH,
                          configHolder.getServerURLWithContextPath());
  serverUrl = "https://middleware:8443";
  properties.setProperty(ConfigHolder.KEY_SERVER_URL, serverUrl);
  configHolder = new ConfigHolder(properties);
  Assertions.assertEquals(serverUrl + ContextPaths.EIDAS_CONTEXT_PATH,
                          configHolder.getServerURLWithContextPath());
  properties.setProperty(ConfigHolder.KEY_SERVER_URL, serverUrl + "/");
  configHolder = new ConfigHolder(properties);
  Assertions.assertEquals(serverUrl + ContextPaths.EIDAS_CONTEXT_PATH,
                          configHolder.getServerURLWithContextPath());
}