@VisibleForTesting
  Schema convertSchema(org.apache.avro.Schema schema) {
    return Schema.of(getFields(schema));
  }
@Test
  void convertSchema_lists() {
    Field intListField = Field.newBuilder("intList", StandardSQLTypeName.INT64).setMode(Field.Mode.REPEATED).build();

    Field requiredDoubleField = Field.newBuilder("requiredDouble", StandardSQLTypeName.FLOAT64)
        .setMode(Field.Mode.REQUIRED)
        .build();
    Field optionalStringField = Field.newBuilder("optionalString", StandardSQLTypeName.STRING)
        .setMode(Field.Mode.NULLABLE)
        .build();
    Field recordListField = Field.newBuilder("recordList", StandardSQLTypeName.STRUCT,
        requiredDoubleField, optionalStringField).setMode(Field.Mode.REPEATED).build();


    com.google.cloud.bigquery.Schema expected =
        com.google.cloud.bigquery.Schema.of(intListField, recordListField);
    Assertions.assertEquals(expected, SCHEMA_RESOLVER.convertSchema(LISTS));
  }