FormatUtil { public static String collectionToString(Collection<?> c) { return "[" + collectionToDelimitedString(c, ", ") + "]"; } private  FormatUtil(); static String arrayToString(Object[] o); static String collectionToString(Collection<?> c); static String addDot(String text); static String join(String delimiter, Object... texts); static String fixLineSeparator(String str);  }
@Test public void collectionToString() { assertThat(FormatUtil.collectionToString(asList("1", 2, "3"))).isEqualTo("[1, 2, 3]"); }