### Question:
StringUtils { public static boolean isContains(String values, String value) { if (values == null || values.length() == 0) { return false; } return isContains(Constants.COMMA_SPLIT_PATTERN.split(values), value); }  static boolean isBlank(String str); static boolean isEmpty(String str); static boolean isNotEmpty(String str); static boolean isInteger(String str); static int parseInteger(String str); static Map<String, String> parseQueryString(String qs); static String getServiceKey(Map<String, String> ps); static String toQueryString(Map<String, String> ps); static boolean isEquals(String s1, String s2); static boolean isContains(String values, String value); static boolean isContains(String[] values, String value); static boolean isNumeric(String str); static final String[] EMPTY_STRING_ARRAY; }### Answer:
@Test public void isContains() throws Exception { assertTrue(StringUtils.isContains("sxp,wf,xxx", "sxp")); assertTrue(StringUtils.isContains("sxp,wf,xxx", "xxx")); assertFalse(StringUtils.isContains("sxp,wf,xxx", "yyyyy")); }
@Test public void isContains1() throws Exception { String[] names = {"sxp", "wf", "xxx"}; assertTrue(StringUtils.isContains(names, "xxx")); assertFalse(StringUtils.isContains(names, "yyyy")); }