### Question:
JSONParquetFieldConverter implements ParquetFieldConverter<JSONObject> { @Override public List<ParquetIOField> convert(JSONObject data) throws ConnectorSDKException { List<ParquetIOField> fields = new ArrayList<>(); for (Object key : data.keySet()) { LinkedList<String> fieldPath = new LinkedList<>(); fieldPath.add(key.toString()); fields.add(createFieldFromJSON(fieldPath, data.get(key))); } return fields; } JSONParquetFieldConverter(List<SchemaField> catalogSchemaFields); @Override List<ParquetIOField> convert(JSONObject data);  }### Answer:
@Test public void TestJsonDataToParquetIOFieldConversion() throws ParseException, ConnectorSDKException { JSONParser parser = new JSONParser(); JSONObject data = (JSONObject) parser.parse(testData); List<ParquetIOField> parquetFields = fieldConverter.convert(data); assert (parquetFields.size() == 2); }
@Test(expected = ConnectorSDKException.class) public void TestNonExistingCatalogField() throws ParseException, ConnectorSDKException { JSONParser parser = new JSONParser(); JSONObject data = (JSONObject) parser.parse("{\"badField\":{}}"); fieldConverter.convert(data); }