StringHelper { public static final List<String> parseListPreferenceValue( String pRawValues, String separator) { List<String> values = new ArrayList<String>(); if (!isEmpty(separator) && !isEmpty(pRawValues)) { StringTokenizer stok = new StringTokenizer(pRawValues, BasicConstants.COMMA_STRING); while (stok.hasMoreElements()) { values.add(stok.nextToken()); } } return values; }  static String defaultString(final String str); static boolean equals(final String str1, final String str2); static boolean equalsIgnoreCase(final String str1, final String str2); static boolean isBlank(final String str); static boolean isNotBlank(final String str); static String[] split(final String str, final String separatorChars); static String substringAfterLast(final String str,
			final String separator); static final List<String> parseListPreferenceValue(
			String pRawValues, String separator); static String stripAccents(String input); static String replace(String text, String searchString,
			String replacement, int max);  }
@Test public void testParseListPreferenceValue() { List<String> values = StringHelper.parseListPreferenceValue(null, null); Assert.assertEquals(0, values.size()); values = StringHelper.parseListPreferenceValue(null, BasicConstants.COMMA_STRING); Assert.assertEquals(0, values.size()); values = StringHelper.parseListPreferenceValue("", BasicConstants.COMMA_STRING); Assert.assertEquals(0, values.size()); values = StringHelper.parseListPreferenceValue("es", BasicConstants.COMMA_STRING); Assert.assertEquals(1, values.size()); Assert.assertEquals("es", values.get(0)); values = StringHelper.parseListPreferenceValue("es,de", BasicConstants.COMMA_STRING); Assert.assertEquals(2, values.size()); Assert.assertEquals("es", values.get(0)); Assert.assertEquals("de", values.get(1)); }