### Question:
TextUtils { public static String[] parseDelimited(String delimited, char delimiter) { return doParseDelimited(delimited, formatForDelimiter(delimiter)); } private  TextUtils(); static String[] parseDelimited(String delimited, char delimiter); static String[] parsePMMLDelimited(String delimited); static String joinDelimited(Iterable<?> elements, char delimiter); static String joinPMMLDelimited(Iterable<?> elements); static String joinPMMLDelimitedNumbers(Iterable<? extends Number> elements); static String[] parseJSONArray(String json); static String joinJSON(Iterable<?> elements); static T readJSON(String json, Class<T> clazz); static T convertViaJSON(Object value, Class<T> clazz);  }### Answer:
@Test public void testParseDelimited() throws Exception { assertArrayEquals(new String[] {"a", "1", "foo"}, TextUtils.parseDelimited("a,1,foo", ',')); assertArrayEquals(new String[] {"a", "1", "foo", ""}, TextUtils.parseDelimited("a,1,foo,", ',')); assertArrayEquals(new String[] {"2.3"}, TextUtils.parseDelimited("2.3", ',')); assertArrayEquals(new String[] {"\"a\""}, TextUtils.parseDelimited("\"\"\"a\"\"\"", ',')); assertArrayEquals(new String[] {"\"", "\"\""}, TextUtils.parseDelimited("\"\"\"\" \"\"\"\"\"\"", ' ')); assertArrayEquals(new String[] {""}, TextUtils.parseDelimited("", ',')); assertArrayEquals(new String[] {"a", "1,", ",foo"}, TextUtils.parseDelimited("a\t1,\t,foo", '\t')); assertArrayEquals(new String[] {"a", "1", "foo", ""}, TextUtils.parseDelimited("a 1 foo ", ' ')); assertArrayEquals(new String[] {"-1.0", "a\" \"b"}, TextUtils.parseDelimited("-1.0 a\"\\ \"b", ' ')); assertArrayEquals(new String[] {"-1.0", "a\"b\"c"}, TextUtils.parseDelimited("-1.0 \"a\\\"b\\\"c\"", ' ')); }