Stringi18nUtils { static String removeAccents(String string) { return Normalizer.normalize(string, Normalizer.Form.NFD) .replaceAll("\\p{InCombiningDiacriticalMarks}+", ""); } private  Stringi18nUtils(); static void sortAlphabetically(String[] arrays, Collator collator); static void sortAlphabetically(List<String> list, Collator collator);  }
@Test public void testRemoveDiacriticalMarks() { String stringWithAccents = "Ácido araquidónico"; String transformed = Stringi18nUtils.removeAccents(stringWithAccents); assertThat(transformed).isEqualTo("Acido araquidonico"); }