@Test
	public void testStrictReadDateWithPatternAndStrangeDate() throws Exception {

		Tuple t = tuple().of("foo", "5550212");
		try {
			System.err.println(t.getDateWithPattern(0, "yyyyMMdd"));
			fail("field value is not a valid date for strict parser, exception expected");
		}
		catch (IllegalArgumentException e) {
			String message = e.getMessage();
			assertTrue("Message did not contain: " + message, message.indexOf("yyyyMMdd") > 0);
		}
	}
This is a port of the FieldSet tests from Spring Batch
spring-xd-tuple/src/test/java/org/springframework/xd/tuple/DefaultTupleTestForBatch.java