@Test
public void testTableReferenceToStringWithProjectId() {

  TableReference tableRef = new TableReference()
      .setProjectId("foo-proj")
      .setDatasetId("foo")
      .setTableId("bar");
  assertThat(BigQueryStrings.toString(tableRef)).isEqualTo("foo-proj:foo.bar");
}