StringUtils { public static boolean contains(final String name, final String target) { return name.toLowerCase().contains(target.toLowerCase()); }  static String replace(final String string, final String target, final String replacement); static boolean contains(final String name, final String target); static boolean isMatchCamelCase(final String name, final String target); static String getChecksum(final String s); static String escapeJava(final String s);  }
@Test public void testContains() { assertFalse(StringUtils.contains("charAt", "cA")); assertFalse(StringUtils.contains("codePointAt", "cA")); assertFalse(StringUtils.contains("codePointAt", "codPoA")); assertTrue(StringUtils.contains("contains", "con")); assertFalse(StringUtils.contains("istrue", "iT")); assertTrue(StringUtils.contains("isTrue", "isT")); assertFalse(StringUtils.contains("aVeryLongMethodName", "aVLM")); assertFalse(StringUtils.contains("aVeryLongMethodName", "aVLMN")); assertTrue(StringUtils.contains("averylongmethodnameonlylowercase", "averyl")); assertTrue(StringUtils.contains("charAt", "")); assertFalse(StringUtils.contains("acceptJsonFormatterVisitor", "aJFV")); assertFalse(StringUtils.contains("saveOperationChannel", "sOpC")); assertTrue(StringUtils.contains("CHARAT", "")); assertTrue(StringUtils.contains("acceptCase", "a")); assertFalse(StringUtils.contains("StringUtils", "sU")); assertTrue(StringUtils.contains("AbstractConsumerConnection", "SU")); }