@Test
	public void testReadDateInvalidByName() throws Exception {

		try {
			tuple.getDate("String");
			fail("field value is not a date, exception expected");
		}
		catch (ConversionFailedException e) {
			assertTrue(e.getMessage().indexOf("TestString") > 0);
			// TODO - in batch this is part of the message, indicating what the name of the field is...
			// assertTrue(e.getMessage().indexOf("name: [String]") > 0);
		}

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