BundleNormalizer { public static String toBundleName(String s) { Require.nonNull(s, "parameter s may not be null or empty."); Require.nonWhitespace(s, "parameter s may not be null or empty."); return s.replaceAll("\\/", "."); }  static String toClassName(String s); static String toFieldName(String s); static String toConstName(String s); static String toBundleName(String s);  }
@Test public void testToBundleName() { final String input = "my/bundles/path"; final String expected= "my.bundles.path"; final String actual= BundleNormalizer.toBundleName(input); assertThat(actual).isEqualTo(expected); }