IcuNormalizer implements Normalizer<String> { @Override public String normalize(String value) { return transliterator.transform(value); } IcuNormalizer(String translitId); @Override String normalize(String value);  }
@Test void half2full() { IcuNormalizer normalizer = new IcuNormalizer("Halfwidth-Fullwidth"); assertThat(normalizer.normalize("1234")) .isEqualTo("１２３４"); }
@Test void full2half() { IcuNormalizer normalizer = new IcuNormalizer("Fullwidth-Halfwidth"); assertThat(normalizer.normalize("西新宿グランド１−５−４")).isEqualTo("西新宿ｸﾞﾗﾝﾄﾞ1−5−4"); }