void () { // synthetic assertEquals("plurals", StringUtil.unpluralize("pluralses")); assertEquals("Inherits", StringUtil.unpluralize("Inheritses")); assertEquals("s", StringUtil.unpluralize("ss")); assertEquals("I", StringUtil.unpluralize("Is")); assertNull(StringUtil.unpluralize("s")); assertEquals("z", StringUtil.unpluralize("zs")); // normal assertEquals("case", StringUtil.unpluralize("cases")); assertEquals("Index", StringUtil.unpluralize("Indices")); assertEquals("fix", StringUtil.unpluralize("fixes")); assertEquals("man", StringUtil.unpluralize("men")); assertEquals("leaf", StringUtil.unpluralize("leaves")); assertEquals("cookie", StringUtil.unpluralize("cookies")); assertEquals("search", StringUtil.unpluralize("searches")); assertEquals("process", StringUtil.unpluralize("process")); assertEquals("PROPERTY", StringUtil.unpluralize("PROPERTIES")); assertEquals("THIS", StringUtil.unpluralize("THESE")); assertEquals("database", StringUtil.unpluralize("databases")); assertEquals("basis", StringUtil.unpluralize("bases")); }