@Test
	public void testNestedTupleSerialization() throws IOException {
		Tuple t0 = TupleBuilder.tuple().of("one", 1, "two", 2);
		Tuple t1 = TupleBuilder.tuple().of("three", 3, "four", 4, "t0", t0);
		Tuple t2 = TupleBuilder.tuple().of("t1", t1);
		ByteArrayOutputStream bos = new ByteArrayOutputStream();
		codec.encode(t2, bos);
		Tuple t3 = codec.decode(bos.toByteArray(), DefaultTuple.class);
		Tuple t4 = (Tuple) t3.getValue("t1");
		Tuple t5 = (Tuple) t4.getValue("t0");
		assertEquals(1, t5.getInt("one"));
		assertEquals(2, t5.getInt("two"));
		assertEquals(t0, t5);
	}
@author David Turanski
@author Gary Russell
spring-xd-tuple/src/test/java/org/springframework/xd/tuple/serializer/kryo/TupleCodecTests.java