@Test
public void testTableExistsTrue() throws IOException {

  when(mockBigqueryTablesGet.execute()).thenReturn(fakeTable);
  boolean exists = helper.tableExists(tableRef);
  // Verify correct calls are made.
  verify(mockBigquery, times(1)).tables();
  verify(mockBigqueryTables, times(1)).get(eq(projectId), eq(datasetId), eq(tableId));
  verify(mockBigqueryTablesGet, times(1)).execute();
  assertThat(exists).isTrue();
}