public static boolean isValidRootUrl(String url) {
        UrlValidator validator = new CustomUrlValidator();
        return validator.isValid(url);
    }
@Test
    public void fragmentIsForbidden() {
        // this url will be used as a root url and so will be concatenated with other part, fragment part is not allowed
        assertFalse(UrlHelper.isValidRootUrl("http://jenkins#fragment"));
        assertFalse(UrlHelper.isValidRootUrl("http://jenkins.com#fragment"));
    }