StringUtils { public static List<String> split(String s, Pattern delimiterPattern) { String[] words = delimiterPattern.split(s); List<String> result = new ArrayList<String>(); for (String w : words) { if (w.length() > 0) { result.add(w); } } return result; }  static List<String> split(String s, Pattern delimiterPattern); static String join(List<String> words, String separator); static String join(String[] words, String separator);  }
@Test(dataProvider="splitTests") public void testSplit(String s, String delimiterPattern, String[] words) { }