public static <T> AvroCoder<T> reflect(TypeDescriptor<T> type) {
    return reflect((Class<T>) type.getRawType());
  }
@Test
  public void testAvroReflectCoderIsSerializable() throws Exception {
    AvroCoder<Pojo> coder = AvroCoder.reflect(Pojo.class);

    // Check that the coder is serializable using the regular JSON approach.
    SerializableUtils.ensureSerializable(coder);
  }