@Test
public void testExecute() throws Exception {

    HtmlAndQueryStringCanonicalizer canonicalizer = new HtmlAndQueryStringCanonicalizer();
    assertEquals("\u00C1", canonicalizer.execute("A\u0301"));
    assertEquals("\u00F6", canonicalizer.execute("o\u0308"));
    assertEquals("\u00E1", canonicalizer.execute("a\u0301"));
    assertEquals(" ", canonicalizer.execute(" "));
    assertEquals("", canonicalizer.execute(""));
    assertEquals(null, canonicalizer.execute(null));
    assertEquals("<script", canonicalizer.execute("\u003Cscript"));
    assertEquals("<script", canonicalizer.execute("&lt;script"));
    assertEquals("<script", canonicalizer.execute("&#x3C;&#x73;&#x63;&#x72;&#x69;&#x70;&#x74;"));
    assertEquals("<script", canonicalizer.execute("%3C%73%63%72%69%70%74"));
}