SitesImpl implements Sites { @Override public String getSiteLinkUrl(SiteLink siteLink) { return this.getPageUrl(siteLink.getSiteKey(), siteLink.getPageTitle()); }  @Override void setSiteInformation(String siteKey, String group,
			String languageCode, String siteType, String filePath,
			String pagePath); @Override String getLanguageCode(String siteKey); @Override String getGroup(String siteKey); @Override String getPageUrl(String siteKey, String pageTitle); @Override String getSiteLinkUrl(SiteLink siteLink); @Override String getFileUrl(String siteKey, String fileName); @Override String getSiteType(String siteKey); static String DEFAULT_PROTOCOL_PREFIX; }
@Test public void siteLinkIri() { SiteLink sSpecialChar = new SiteLinkImpl("&", "dewiki", Collections.emptyList()); assertEquals(SitesImpl.DEFAULT_PROTOCOL_PREFIX + " this.sites.getSiteLinkUrl(sSpecialChar)); SiteLink sSpecialChar2 = new SiteLinkImpl("Björk", "enwiki", Collections.emptyList()); assertEquals("http: this.sites.getSiteLinkUrl(sSpecialChar2)); }