@Test
public void testCyclicArrays() {

    Object[] cyclicA = new Object[1];
    cyclicA[0] = cyclicA;
    assertEquals("[[...]]", MessageFormatter.arrayFormat("{}", cyclicA).getMessage());
    Object[] a = new Object[2];
    a[0] = 1;
    Object[] c = { 3, a };
    Object[] b = { 2, c };
    a[1] = b;
    assertEquals("1[2, [3, [1, [...]]]]",
                 MessageFormatter.arrayFormat("{}{}", a).getMessage());
}