@Test
	public void testReadDateInvalid() throws Exception {
		try {
			tuple.getDate(0);
			fail("field value is not a date, exception expected");
		}
		catch (ConversionFailedException e) {
			assertTrue(e.getMessage().indexOf("TestString") > 0);
		}

	}
This is a port of the FieldSet tests from Spring Batch
spring-xd-tuple/src/test/java/org/springframework/xd/tuple/DefaultTupleTestForBatch.java