Tuple { @Override public String toString() { return schema.format(values); } Tuple(TupleSchema schema, Object[] values); Object get(String name); T get(TupleKey<T> key); Map<String, V> serialise(Function<Object, V> serialiser); Map<String, Object> toMap(); TupleSchema getSchema(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void toStringRepresentationContainsNameValuePairs() { Tuple person = personSchema.makeWith("Dominic", 41, addressSchema.makeWith(asList("23 Acacia Avenue", "Sunderland"), "VB6 5UX")); assertThat(person.toString(), equalTo("person{name=Dominic, age=41, address=address{addressLines=[23 Acacia Avenue, Sunderland], postcode=VB6 5UX}}")); }