### Question:
ParquetSchemaConverter { public static MessageType toParquetType(TypeInformation<?> typeInformation, boolean legacyMode) { return (MessageType) convertField(null, typeInformation, Type.Repetition.OPTIONAL, legacyMode); }  static TypeInformation<?> fromParquetType(MessageType type); static MessageType toParquetType(TypeInformation<?> typeInformation, boolean legacyMode); static final String MAP_VALUE; static final String LIST_ARRAY_TYPE; static final String LIST_ELEMENT; static final String LIST_GROUP_NAME; static final String MESSAGE_ROOT; }### Answer:
@Test public void testSimpleRowTypeConversion() { MessageType simpleSchema = ParquetSchemaConverter.toParquetType(SIMPLE_ROW_TYPE, true); assertEquals(Arrays.asList(simpleStandardTypes), simpleSchema.getFields()); }
@Test public void testNestedRowTypeConversion() { MessageType nestedSchema = ParquetSchemaConverter.toParquetType(NESTED_ROW_TYPE, true); assertEquals(Arrays.asList(nestedTypes), nestedSchema.getFields()); }