output.writeString("abc");
val1.objectToEntry(val2, output);
output.writeString("xyz");
TupleInput input = new TupleInput(output);
assertEquals("abc", input.readString());
Object val3 = val1.entryToObject(input);
assertEquals("xyz", input.readString());
assertEquals(0, input.available());
assertSame(val2.getClass(), val3.getClass());