StringsHelper { public static String normalizeString(String s) { if (!Normalizer.isNormalized(s, Normalizer.Form.NFC)) { return Normalizer.normalize(s, Normalizer.Form.NFC); } else { return s; } }  static boolean match(final String reference, final String value, final boolean strict); static String normalizeString(String s);  }
@Test public void normalizeString() throws Exception { final String initialString = "visités"; final String expected = "visités"; assertNotEquals(initialString, expected); assertEquals(expected, StringsHelper.normalizeString(initialString)); assertEquals(expected, StringsHelper.normalizeString(expected)); assertEquals(expected, StringsHelper.normalizeString(StringsHelper.normalizeString(initialString))); }