public static MessageType convert(Schema schema, String name) {
    return new TypeToMessageType().convert(schema, name);
  }
@Test
  public void testLegacyTwoLevelListGenByParquetThrift() {
    String messageType =
        "message root {"
            + "  optional group my_list (LIST) {"
            + "    repeated group my_list_tuple {"
            + "      required binary str (UTF8);"
            + "    }"
            + "  }"
            + "}";

    MessageType parquetScehma = MessageTypeParser.parseMessageType(messageType);
    Schema expectedSchema =
        new Schema(
            optional(
                1,
                "my_list",
                Types.ListType.ofRequired(
                    1001, Types.StructType.of(required(1000, "str", Types.StringType.get())))));

    Schema actualSchema = ParquetSchemaUtil.convert(parquetScehma);
    assertThat(actualSchema.asStruct())
        .as("Schema must match")
        .isEqualTo(expectedSchema.asStruct());
  }