public static boolean isValidRootUrl(String url) {
        UrlValidator validator = new CustomUrlValidator();
        return validator.isValid(url);
    }
@Test
    public void multipleConsecutiveDashesAreAllowed() {
        assertTrue(UrlHelper.isValidRootUrl("http://jenk--ins.internal/"));
        assertTrue(UrlHelper.isValidRootUrl("http://www.go-----ogle.com/"));
        // even with subdomain being just a dash
        assertTrue(UrlHelper.isValidRootUrl("http://www.go.-.--.--ogle.com/"));
    }