AvroTypeInfo extends PojoTypeInfo<T> { @Override @SuppressWarnings("deprecation") public TypeSerializer<T> createSerializer(ExecutionConfig config) { return useBackwardsCompatibleSerializer ? new BackwardsCompatibleAvroSerializer<>(getTypeClass()) : new AvroSerializer<>(getTypeClass()); } AvroTypeInfo(Class<T> typeClass);  AvroTypeInfo(Class<T> typeClass, boolean useBackwardsCompatibleSerializer); @Override @SuppressWarnings("deprecation") TypeSerializer<T> createSerializer(ExecutionConfig config); @SuppressWarnings("unchecked") @Internal static List<PojoField> generateFieldsFromAvroSchema(
			Class<T> typeClass,
			boolean useBackwardsCompatibleSerializer);  }
@Test public void testAvroByDefault() { final TypeSerializer<User> serializer = new AvroTypeInfo<>(User.class).createSerializer(new ExecutionConfig()); assertTrue(serializer instanceof AvroSerializer); }