Functions { public static String link(String value) { if (value == null || value.isEmpty()) { return ""; } return URL_PATTERN.matcher(value).replaceAll("<a href=\"$0\">$0</a>"); } private  Functions(); static String h(Object input); static String u(String value); static String br(String value); static String cut(String value, int length); static String link(String value); static String mapToQuery(Map<String, ?> map); @Deprecated static String mapToQuery(Map<String, ?> map,
            BeanWrapper beanWrapper); static String query(Object params); static String js(String value); static String hjs(String input);  }
@Test public void testLink() { assertThat(Functions.link(null), is("")); assertThat(Functions.link(""), is("")); assertThat(Functions.link("go to http: "go to <a href=\"http: assertThat(Functions.link("go to https: "go to <a href=\"https: }