@Test
public void sanitizeTest() {

    Assert.assertEquals("abc\\2adef", LdapStringSanitizer.sanitize("abc*def"));
    Assert.assertEquals("abc\\28def", LdapStringSanitizer.sanitize("abc(def"));
    Assert.assertEquals("abc\\29def", LdapStringSanitizer.sanitize("abc)def"));
    Assert.assertEquals("abc\\5cdef", LdapStringSanitizer.sanitize("abc\\def"));
    Assert.assertEquals("abc\\00def", LdapStringSanitizer.sanitize("abc\u0000def"));
    Assert.assertEquals("abc\\c9\\86def", LdapStringSanitizer.sanitize("abc\u0246def"));
}