public static boolean isValidRootUrl(String url) {
        UrlValidator validator = new CustomUrlValidator();
        return validator.isValid(url);
    }
@Test
    public void ipv4Allowed() {
        assertTrue(UrlHelper.isValidRootUrl("http://172.52.125.12"));
        assertTrue(UrlHelper.isValidRootUrl("http://172.52.125.12/jenkins"));
        assertTrue(UrlHelper.isValidRootUrl("http://172.52.125.12:8080"));
        assertTrue(UrlHelper.isValidRootUrl("http://172.52.125.12:8080/jenkins"));
    }