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