@Test
public void testNormalizeURLLink_decodeEncoded() throws Exception {

    /* Decoding percent-encoded octets of unreserved characters. For consistency, percent-encoded octets in the ranges of ALPHA (%41–%5A and %61–%7A), DIGIT (%30–%39),
    hyphen (%2D), period (%2E), underscore (%5F), or tilde (%7E) should not be created by URI producers and, when found in a URI, should be decoded to their
    corresponding unreserved characters by URI normalizers.
        http://www.example.com/%7Eusername/ → http://www.example.com/~username/ */
    final String inLink = "http://www.example.com/%7Eusername/";
    final String outLink = "http://www.example.com/~username/";
    assertEquals("Decode percent-encoded octets of unreserved characters failed", outLink, WebContentTools.normalizeURLLink(inLink));
}