### Question:
ParseTextUtils { static String join(CharSequence delimiter, Iterable tokens) { StringBuilder sb = new StringBuilder(); boolean firstTime = true; for (Object item: tokens) { if (firstTime) { firstTime = false; } else { sb.append(delimiter); } sb.append(item); } return sb.toString(); } private  ParseTextUtils(); static boolean isEmpty(CharSequence text); static boolean equals(CharSequence a, CharSequence b);  }### Answer:
@Test public void testJoinMultipleItems() { String joined = ParseTextUtils.join(",", Arrays.asList("one", "two", "three")); assertEquals("one,two,three", joined); }
@Test public void testJoinSingleItem() { String joined = ParseTextUtils.join(",", Collections.singletonList("one")); assertEquals("one", joined); }