ToString { static String toArrayString(Object obj) { List<Object> list = new ArrayList<Object>(); for (int i = 0, size = Array.getLength(obj); i < size; i++) { list.add(Array.get(obj, i)); } return ImmutableListToString.toString(ImmutableListUsingList.wrap(list)); }  static String toObjectString(Object obj); static String toString(Object... args);  }
@Test public void testToArrayString() { assertThat("(A,B)", is(ToString.toArrayString(new String[] { "A", "B" }))); }