### Question:
StringNormalizer { public static String encode(String s) { StringBuilder result = new StringBuilder(); for (Character c : s.toCharArray()) { if (c.equals('<')) { result.append("&lt;"); } else if (c.equals('>')) { result.append("&gt;"); } else if (c.equals('"')) { result.append("&quot;"); } else if (c.equals('&')) { result.append("&amp;"); } else { result.append(c); } } return result.toString(); }  static String reduceWS(String s); static String composed(String s); static String compatible(String s); static String removeDiacritics(String s); static String removePunctuation(String s); static String trim(String s); static String canonical(String s,
            boolean ignoreCase,
            boolean ignoreDiacritics,
            boolean ignorePunctuation); static String strip(String s); static String encode(String s);  }### Answer:
@Test public void testEncode() { System.out.println("encode"); String s = "<\">"; String expResult = "&lt;&quot;&gt;"; String result = StringNormalizer.encode(s); assertEquals(expResult, result); }