This class should be not instantiated directly, but as a result of calling {@see \Google\Cloud\BigQuery\Table::insertRow()} or {@see \Google\Cloud\BigQuery\Table::insertRows()}.
 public function testFailure()
 {
     $index = 0;
     $errors = [['reason' => 'invalid', 'location' => 'test', 'debugInfo' => 'genric::not_found: no such field.', 'message' => 'no such field.']];
     $apiResponse = ['insertErrors' => [['index' => $index, 'errors' => $errors]]];
     $rows = [['json' => ['key' => 'value']]];
     $insertResponse = new InsertResponse($apiResponse, $rows);
     $failedRow = $insertResponse->failedRows()[0];
     $this->assertFalse($insertResponse->isSuccessful());
     $this->assertEquals($index, $failedRow['index']);
     $this->assertEquals($errors, $failedRow['errors']);
     $this->assertEquals($rows[0]['json'], $failedRow['rowData']);
 }