public function testInsertsRows()
{
$insertId = '1';
$data = ['key' => 'value'];
$rowData = [['insertId' => $insertId, 'data' => $data]];
$expectedArguments = ['tableId' => $this->tableId, 'projectId' => $this->projectId, 'datasetId' => $this->datasetId, 'rows' => [['json' => $data, 'insertId' => $insertId]]];
$this->connection->insertAllTableData($expectedArguments)->willReturn([])->shouldBeCalledTimes(1);
$table = $this->getTable($this->connection);
$insertResponse = $table->insertRows($rowData);
$this->assertInstanceOf(InsertResponse::class, $insertResponse);
$this->assertTrue($insertResponse->isSuccessful());
}