TinyTable implements Serializable { @Override public String toString() { return Arrays.deepToString(table); } TinyTable(TinyTablesElement[] values); TinyTablesElement getValue(TinyTablesElement eu, TinyTablesElement ev); @Override String toString();  }
@Test public void testToString() { TinyTablesElement e = TinyTablesElement.getInstance(false); TinyTable table = new TinyTable(new TinyTablesElement[] { e, e, e, e }); assertThat(table.toString(), is(String.format("[[%s, %s], [%s, %s]]", e, e, e, e))); }