public String siteUrlFor(String givenUrl) throws URISyntaxException {
        return siteUrlFor(givenUrl, false);
    }
@Test
    public void shouldGenerateSiteUrlUsingConfiguredSiteUrlForAuth() throws URISyntaxException {
        ServerSiteUrlConfig url = new SiteUrl("http://someurl.com");
        assertThat(url.siteUrlFor("http://admin:badger@test.host/foo"), is("http://admin:badger@someurl.com/foo"));
        assertThat(url.siteUrlFor("http://admin@test.host/foo"), is("http://admin@someurl.com/foo"));
    }