@Test
	public void testTupleSerialization() throws IOException {
		ByteArrayOutputStream bos = new ByteArrayOutputStream();
		Tuple foo = TupleBuilder.tuple().of("hello", 123, "foo", "bar");
		codec.encode(foo, bos);

		Tuple foo2 = codec.decode(
				bos.toByteArray(),
				DefaultTuple.class);
		// Not foo2.equals(foo) actually returns a new instance
		assertEquals(foo.getInt(0), foo2.getInt(0));
		assertEquals(foo.getString(1), foo2.getString(1));
	}
@author David Turanski
@author Gary Russell
spring-xd-tuple/src/test/java/org/springframework/xd/tuple/serializer/kryo/TupleCodecTests.java