@Test
public void testConfigure() throws IOException {

  BigQueryOutputConfiguration.configure(
      conf,
      QUALIFIED_TABLE_ID,
      TEST_TABLE_SCHEMA,
      TEST_OUTPUT_PATH_STRING,
      TEST_FILE_FORMAT,
      TEST_OUTPUT_CLASS);
  assertThat(BigQueryConfiguration.OUTPUT_PROJECT_ID.get(conf, conf::get))
      .isEqualTo(TEST_PROJECT_ID);
  assertThat(BigQueryConfiguration.OUTPUT_DATASET_ID.get(conf, conf::get))
      .isEqualTo(TEST_DATASET_ID);
  assertThat(BigQueryConfiguration.OUTPUT_TABLE_ID.get(conf, conf::get)).isEqualTo(TEST_TABLE_ID);
  assertThat(BigQueryConfiguration.OUTPUT_FILE_FORMAT.get(conf, conf::get))
      .isEqualTo(TEST_FILE_FORMAT.name());
  assertThat(BigQueryConfiguration.OUTPUT_FORMAT_CLASS.get(conf, conf::getClass))
      .isEqualTo(TEST_OUTPUT_CLASS);
  assertThat(BigQueryConfiguration.OUTPUT_TABLE_SCHEMA.get(conf, conf::get))
      .isEqualTo(TEST_TABLE_SCHEMA_STRING);
  assertThat(BigQueryOutputConfiguration.getGcsOutputPath(conf).toString())
      .isEqualTo(TEST_OUTPUT_PATH_STRING);
}