@Test
public void getBigQuery_customEndpoint() throws Exception {

  BigQueryFactory factory = new BigQueryFactory();
  Configuration configuration = CredentialConfigurationUtil.getTestConfiguration();
  configuration.set(BQ_ROOT_URL.getKey(), "https://unit-test-bigquery.googleapis.com/");
  Bigquery bigquery = factory.getBigQuery(configuration);
  assertThat(bigquery).isNotNull();
  assertThat(bigquery.getRootUrl()).isEqualTo("https://unit-test-bigquery.googleapis.com/");
}