@Test
public void testToStringThrowsWhenTableIdIsNull() {

  TableReference tableRef = new TableReference()
      .setProjectId("foo-proj")
      .setDatasetId("foo")
      .setTableId(null);
  assertThrows(IllegalArgumentException.class, () -> BigQueryStrings.toString(tableRef));
}