TinyTablesTriple implements Serializable { @Override public String toString() { return "TinyTablesTriple[" + elementA + "," + elementB + "," + elementC + "]"; } private  TinyTablesTriple(TinyTablesElement a, TinyTablesElement b, TinyTablesElement c); private  TinyTablesTriple(boolean a, boolean b, boolean c); static TinyTablesTriple fromShares(boolean shareA, boolean shareB, boolean shareC); TinyTablesElement getA(); TinyTablesElement getB(); TinyTablesElement getC(); @Override String toString();  }
@Test public void testToString() { TinyTablesElement e = TinyTablesElement.getInstance(true); TinyTablesTriple trip = TinyTablesTriple.fromShares(e.getShare(), e.getShare(), e.getShare()); assertThat(trip.toString(), is("TinyTablesTriple[" + e + "," + e + "," + e + "]")); }