@Test
public void testFunctionDependingOnInputWithTupleInput() {

	IdentityMapper2<Boolean> function = new IdentityMapper2<Boolean>();
	TypeInformation<Tuple2<Boolean, String>> inputType = new TupleTypeInfo<Tuple2<Boolean, String>>(BasicTypeInfo.BOOLEAN_TYPE_INFO,
			BasicTypeInfo.STRING_TYPE_INFO);
	TypeInformation<?> ti = TypeExtractor.getMapReturnTypes(function, inputType);
	Assert.assertTrue(ti.isBasicType());
	Assert.assertEquals(BasicTypeInfo.BOOLEAN_TYPE_INFO, ti);
}