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

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