BindingGeneratorUtil { public static String replaceAllIllegalChars(final String str) { final int backslash = str.indexOf('\\'); return backslash == -1 ? str : defangUnicodeEscapes(str); } private  BindingGeneratorUtil(); static String resolveJavaReservedWordEquivalency(final String parameterName); static String packageNameForGeneratedType(final String basePackageName, final SchemaPath schemaPath); static String packageNameForAugmentedGeneratedType(final String basePackageName,
            final SchemaPath schemaPath); static long computeDefaultSUID(final GeneratedTypeBuilderBase<?> to); static Restrictions getRestrictions(final TypeDefinition<?> type); static String encodeAngleBrackets(String description); static String replaceAllIllegalChars(final String str);  }
@Test public void unicodeCharReplaceTest() { String inputString = "abcu\\uuuuu\\uuua\\u\\\\uabc\\\\uuuu\\\\\\uuuu\\\\\\\\uuuu assertEquals("abcu\\\\uuuuu\\\\uuua\\\\u\\\\uabc\\\\uuuu\\\\uuuu\\\\uuuu BindingGeneratorUtil.replaceAllIllegalChars(inputString)); }