### Question:
BigQuerySchemaUtils { public static Schema beamSchemaToBigQueryClientSchema( org.apache.beam.sdk.schemas.Schema tableSchema) { ArrayList<Field> bqFields = new ArrayList<>(tableSchema.getFieldCount()); for (org.apache.beam.sdk.schemas.Schema.Field f : tableSchema.getFields()) { bqFields.add(beamFieldToBigQueryClientField(f)); } return Schema.of(bqFields); }  static Schema beamSchemaToBigQueryClientSchema(
      org.apache.beam.sdk.schemas.Schema tableSchema);  }### Answer:
@Test public void testComplexSchemaToBQSchema() { assertThat(BigQuerySchemaUtils.beamSchemaToBigQueryClientSchema(ALL_BEAM_SCHEMA), is(ALL_BQ_SCHEMA)); }
@Test public void testUnsupportedTypes() { UNSUPPORTED_TYPE_SCHEMAS.forEach(schema -> { assertThrows( IllegalArgumentException.class, () -> BigQuerySchemaUtils.beamSchemaToBigQueryClientSchema(schema), "Expected an exception with unsupported type conversion, but didn't see one"); }); }