@Test
public void testInterface() {

	MapFunction<String, Boolean> mapInterface = new MapFunction<String, Boolean>() {
		private static final long serialVersionUID = 1L;
		
		@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);
}