@Test
public void testFunction() {

	RichMapFunction<String, Boolean> mapInterface = new RichMapFunction<String, Boolean>() {
		
		private static final long serialVersionUID = 1L;
		@Override
		public void setRuntimeContext(RuntimeContext t) {
			
		}
		
		@Override
		public void open(Configuration parameters) throws Exception {
		}
		
		@Override
		public RuntimeContext getRuntimeContext() {
			return null;
		}
		
		@Override
		public void close() throws Exception {
			
		}
		
		@Override
		public Boolean map(String record) throws Exception {
			return null;
		}
	};
	
	TypeInformation<?> ti = TypeExtractor.getMapReturnTypes(mapInterface, BasicTypeInfo.STRING_TYPE_INFO);
	Assert.assertEquals(BasicTypeInfo.BOOLEAN_TYPE_INFO, ti);
}