FormatUtil { public static String arrayToString(Object[] o) { return "[" + arrayToDelimitedString(o, ", ") + "]"; } 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 arrayToString() { assertThat(FormatUtil.arrayToString(new Object[]{"1", 2, "3"})).isEqualTo("[1, 2, 3]"); }