@Test
	public void testReadLongWithNullValue() {
		long defaultValue = 5;
		int indexOfNull = 10;
		int indexNotNull = 6;
		String nameNull = "Null";
		String nameNotNull = "Long";
		long longValueAtIndex = 543;

		assertThat(defaultValue, equalTo(tuple.getLong(indexOfNull, defaultValue)));
		assertThat(longValueAtIndex, equalTo(tuple.getLong(indexNotNull, defaultValue)));

		assertThat(defaultValue, equalTo(tuple.getLong(nameNull, defaultValue)));
		assertThat(longValueAtIndex, equalTo(tuple.getLong(nameNotNull, defaultValue)));
	}
This is a port of the FieldSet tests from Spring Batch
spring-xd-tuple/src/test/java/org/springframework/xd/tuple/DefaultTupleTestForBatch.java