@Test
public void testParseTableReferenceWithProject() {

  // ProjectId itself may contain '.' and ':'.
  TableReference tableRef = BigQueryStrings.parseTableReference("google.com:foo-proj:foo.bar");
  assertThat(tableRef.getProjectId()).isEqualTo("google.com:foo-proj");
  assertThat(tableRef.getDatasetId()).isEqualTo("foo");
  assertThat(tableRef.getTableId()).isEqualTo("bar");
}