@Test
public void testConfigureBigQueryOutput() throws IOException {

  BigQueryConfiguration.configureBigQueryOutput(
      conf,
      OUTPUT_PROJECT_ID,
      OUTPUT_DATASET_ID,
      OUTPUT_TABLE_ID,
      OUTPUT_TABLE_SCHEMA);
  assertThat(BigQueryConfiguration.OUTPUT_PROJECT_ID.get(conf, conf::get))
      .isEqualTo(OUTPUT_PROJECT_ID);
  assertThat(BigQueryConfiguration.OUTPUT_DATASET_ID.get(conf, conf::get))
      .isEqualTo(OUTPUT_DATASET_ID);
  assertThat(BigQueryConfiguration.OUTPUT_TABLE_ID.get(conf, conf::get))
      .isEqualTo(OUTPUT_TABLE_ID);
  assertThat(BigQueryConfiguration.OUTPUT_TABLE_SCHEMA.get(conf, conf::get))
      .isEqualTo(OUTPUT_TABLE_SCHEMA);
  // By default, the job-level projectId inherits the output projectId if it's not already set.
  assertThat(BigQueryConfiguration.PROJECT_ID.get(conf, conf::get)).isEqualTo(OUTPUT_PROJECT_ID);
}