### Question:
CatalogSchemaParquetFieldConverter implements ParquetFieldConverter<List<SchemaField>> { @Override public List<ParquetIOField> convert(List<SchemaField> data) throws ConnectorSDKException { if (data == null) { throw new ConnectorSDKException("Schema Fields are null. Please provide schema."); } List<ParquetIOField> fields = new ArrayList<>(); for (SchemaField schemaField : data) { fields.add(getParquetIOField(schemaField)); } return fields; }  @Override List<ParquetIOField> convert(List<SchemaField> data);  }### Answer:
@Test public void TestSchemaFieldToParquetIOFieldConversion() throws ConnectorSDKException { List<ParquetIOField> parquetFields = fieldConverter.convert(getMockSchemaFields()); assert (parquetFields.size() == 2); }
@Test public void TestCreateStructField() throws ConnectorSDKException { List<SchemaField> subFields = new ArrayList<>(); SchemaField subField1 = new SchemaField("subField1", DataType.StringType, null); SchemaField subField2 = new SchemaField("subField2", DataType.StringType, null); SchemaField subField3 = new SchemaField("subField3", DataType.StringType, null); subFields.add(subField1); subFields.add(subField2); subFields.add(subField3); SchemaField objectField = new SchemaField("objectField", DataType.Field_ObjectType, subFields); List<SchemaField> data = new ArrayList<>(); data.add(objectField); List<ParquetIOField> parquetIOFields = fieldConverter.convert(data); assertEquals(parquetIOFields.get(0).getSubFields().size(), 3); assertEquals(parquetIOFields.get(0).getSubFields().get(0).getType(), ParquetIODataType.STRING); assertEquals(parquetIOFields.get(0).getSubFields().get(0).getRepetitionType(), ParquetIORepetitionType.OPTIONAL); }