}
@Test
public void testNestedTupleSerialization() throws IOException {
TupleCodec serializer = new TupleCodec();
Tuple t0 = TupleBuilder.tuple().of("one", 1, "two", 2);
Tuple t1 = TupleBuilder.tuple().of("t0", t0);
ByteArrayOutputStream bos = new ByteArrayOutputStream();
serializer.serialize(t1, bos);
Tuple t2 = serializer.deserialize(bos.toByteArray());
Tuple t3 = (Tuple) t2.getValue("t0");
assertEquals(1, t3.getInt("one"));
assertEquals(2, t3.getInt("two"));
assertEquals(t0, t3);
}