@Test
public void testTypeExtractionGenericAnonymous() {

	TypeInformation<JSONPObject> type = new AbstractDeserializationSchema<JSONPObject>() {
		@Override
		public JSONPObject deserialize(byte[] message) throws IOException {
			throw new UnsupportedOperationException();
		}
	}.getProducedType();
	TypeInformation<JSONPObject> expected = TypeInformation.of(new TypeHint<JSONPObject>(){});
	assertEquals(expected, type);
}