@Test
public void testGetApiGatewayBaseUrl() {

    String apiGatewayBaseUrl = null;
    Api2UrlService s1 = new Api2UrlService(null, null, null, apiGatewayBaseUrl);
    assertNotNull(s1.getApiGatewayBaseUrl());
    assertEquals(EuropeanaStaticUrl.API_GATEWAY_URL, s1.getApiGatewayBaseUrl());
    apiGatewayBaseUrl = "api.europeana.eu";
    Api2UrlService s2 = new Api2UrlService(null, null, null, apiGatewayBaseUrl);
    assertEquals(apiGatewayBaseUrl, s2.getApiGatewayBaseUrl());
    apiGatewayBaseUrl = "https://api.europeana.eu";
    Api2UrlService s3 = new Api2UrlService(null, null, null, apiGatewayBaseUrl);
    assertEquals(apiGatewayBaseUrl, s3.getApiGatewayBaseUrl());
}