Functions { public static String hjs(String input) { return h(js(input)); } 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 testHjs() { assertThat(Functions.hjs(null), is("")); assertThat(Functions.hjs(""), is("")); assertThat(Functions.hjs("a"), is("a")); assertThat(Functions.hjs("'"), is("\\&#39;")); assertThat(Functions.hjs("\""), is("\\&quot;")); assertThat(Functions.hjs("\\"), is("\\\\")); assertThat(Functions.hjs("/"), is("\\/")); assertThat(Functions.hjs("<"), is("\\x3c")); assertThat(Functions.hjs(">"), is("\\x3e")); assertThat(Functions.hjs("\r"), is("\\r")); assertThat(Functions.hjs("\n"), is("\\n")); assertThat(Functions.hjs("b"), is("b")); }