@Test
	public void testReadDateWithPatternAndDefault() {
		Date date = null;
		assertEquals(date, tuple.getDateWithPattern(13, "dd-MM-yyyy", date));
		assertEquals(date, tuple.getDateWithPattern("BlankInput", "dd-MM-yyyy", date));
	}
This is a port of the FieldSet tests from Spring Batch
spring-xd-tuple/src/test/java/org/springframework/xd/tuple/DefaultTupleTestForBatch.java