@SuppressWarnings({ "unchecked", "rawtypes" })

@Test
public void testEnumType() {
	MapFunction<?, ?> mf = new MapFunction<MyEnum, MyEnum>() {
		private static final long serialVersionUID = 1L;
		@Override
		public MyEnum map(MyEnum value) throws Exception {
			return null;
		}
	};
	
	TypeInformation<?> ti = TypeExtractor.getMapReturnTypes((MapFunction) mf, new EnumTypeInfo(MyEnum.class));
	Assert.assertTrue(ti instanceof EnumTypeInfo);
	Assert.assertEquals(ti.getTypeClass(), MyEnum.class);
}