@Test
public void testGetPortalBaseUrl() {

    String baseUrl = null;
    Api2UrlService s1 = new Api2UrlService(baseUrl,null, null, null);
    assertEquals(EuropeanaStaticUrl.EUROPEANA_PORTAL_URL, s1.getPortalBaseUrl());
    baseUrl = "www.europeana.eu";
    Api2UrlService s2 = new Api2UrlService(baseUrl, null, null, null);
    assertEquals(baseUrl, s2.getPortalBaseUrl());
    baseUrl = "http://www.europeana.eu";
    Api2UrlService s3 = new Api2UrlService(baseUrl,null, null, null);
    assertEquals(baseUrl, s3.getPortalBaseUrl());
}