### Question:
StringUtil { public static String camelToConstCase(final String str) { return camelToConstCase(str, false); } private  StringUtil(); static boolean isBlank(final String strValue); static String first2LowerCase(final String strValue); static String first2UpperCase(final String strValue); static String constToLowerCamelCase(final String str); static String constToUpperCamelCase(final String str); static String camelToConstCase(final String str); static String camelToSnakeCase(final String str); static boolean isUpperCamelCase(final String testString); static boolean isLowerCamelCase(final String testString); static boolean isSimpleLetterOrDigit(final char c); static String replace(final String str, final String oldStr, final String newStr); static void replace(final StringBuilder str, final String oldStr, final String newStr); static String format(final String msg, final Object... params);  }### Answer:
@Test public void testCaseUnTransform() { assertEquals("X_Z_YYY", StringUtil.camelToConstCase("xZYyy")); assertEquals("X_Z_YYY", StringUtil.camelToConstCase("XZYyy")); assertEquals(XXX_YYY_ZZZ, StringUtil.camelToConstCase("XxxYyyZzz")); assertEquals(XXX_YYY_ZZZ, StringUtil.camelToConstCase("xxxYyyZzz")); assertEquals("XXX_Y_ZZZ", StringUtil.camelToConstCase("xxxYZzz")); assertEquals("XXX_YYY_12", StringUtil.camelToConstCase("xxxYyy12")); assertEquals("XXX_YYY_12PPP", StringUtil.camelToConstCase("xxxYyy12ppp")); assertEquals("XXX_YYY_12_PPP", StringUtil.camelToConstCase("xxxYyy12Ppp")); assertEquals("XXX_YYY_12_3", StringUtil.camelToConstCase("xxxYyy12_3")); assertEquals("XXX_Y_Y_Y_1", StringUtil.camelToConstCase("XxxYYY1")); assertEquals("T_ADRESSE_ADR", StringUtil.camelToConstCase("TAdresseAdr")); }