@Test
public void checkTypeInformation() {

	try {
		// Set up the Hadoop Input Format
		Job job = Job.getInstance();
		HadoopInputFormat<Void, Long> hadoopInputFormat = new HadoopInputFormat<Void, Long>(
				new DummyVoidKeyInputFormat<Long>(), Void.class, Long.class, job);
		TypeInformation<Tuple2<Void,Long>> tupleType = hadoopInputFormat.getProducedType();
		TypeInformation<Tuple2<Void,Long>> testTupleType = new TupleTypeInfo<Tuple2<Void,Long>>(BasicTypeInfo.VOID_TYPE_INFO, BasicTypeInfo.LONG_TYPE_INFO);
		
		if(tupleType.isTupleType()) {
			if(!((TupleTypeInfo<?>)tupleType).equals(testTupleType)) {
				fail("Tuple type information was not set correctly!");
			}
		} else {
			fail("Type information was not set to tuple type information!");
		}
	}
	catch (Exception ex) {
		fail("Test failed due to a " + ex.getClass().getSimpleName() + ": " + ex.getMessage());
	}
}