public static List<FieldSchema> convert(Schema schema) {
    return schema.columns().stream()
        .map(col -> new FieldSchema(col.name(), convertToTypeString(col.type()), col.doc()))
        .collect(Collectors.toList());
  }
@Test
  public void testSimpleSchemaConvertToIcebergSchemaFromNameAndTypeLists() {
    List<String> names = SIMPLE_HIVE_SCHEMA.stream().map(field -> field.getName()).collect(Collectors.toList());
    List<TypeInfo> types = SIMPLE_HIVE_SCHEMA.stream()
        .map(field -> TypeInfoUtils.getTypeInfoFromTypeString(field.getType()))
        .collect(Collectors.toList());
    List<String> comments = SIMPLE_HIVE_SCHEMA.stream().map(FieldSchema::getComment).collect(Collectors.toList());
    assertThat(HiveSchemaUtil.convert(names, types, comments).asStruct()).isEqualTo(SIMPLE_ICEBERG_SCHEMA.asStruct());
  }