public function testRunsCopyJob()
{
$destinationTableId = 'destinationTable';
$destinationTable = $this->getTable($this->connection, [], $destinationTableId);
$expectedArguments = ['projectId' => $this->projectId, 'configuration' => ['copy' => ['destinationTable' => ['datasetId' => $this->datasetId, 'tableId' => $destinationTableId, 'projectId' => $this->projectId], 'sourceTable' => ['datasetId' => $this->datasetId, 'tableId' => $this->tableId, 'projectId' => $this->projectId]]]];
$this->connection->insertJob(Argument::exact($expectedArguments))->willReturn($this->insertJobResponse)->shouldBeCalledTimes(1);
$table = $this->getTable($this->connection);
$job = $table->copy($destinationTable);
$this->assertInstanceOf(Job::class, $job);
$this->assertEquals($this->insertJobResponse, $job->info());
}