NamingStrategyUtils { public static String classToPluralizedName(String className) { return pluralize(classToName(className)); } private  NamingStrategyUtils(); static String propertyToPluralizedName(String property); static String classToPluralizedName(String className); static String propertyToName(String property); static String classToName(String className); static String addUnderscores(String name); static String unqualifyEntityName(String entityName); static String unqualify(String qualifiedName); static String concat(String left, String right); static String concat(String[] parts); static String pluralize(final String name); static String removeVowelsSmart(String str, int maxCountToRemove); static boolean isVowel(char value); static final char NAME_PARTS_SEPARATOR; }
@Test public void classToPluralizedName() { assertThat(NamingStrategyUtils.classToPluralizedName("com.company.SomeUser")) .isEqualTo("some_users"); assertThat(NamingStrategyUtils.classToPluralizedName("com.company.OuterClass$SomeUser")) .isEqualTo("some_users"); }