public function testExecuteRequest()
 {
     try {
         $response = $this->clientStub->executeRequest();
         $this->fail('Excepted \\RuntimeException to be thrown.');
     } catch (\RuntimeException $e) {
     }
     $this->clientStub->setApiKey('key');
     try {
         $response = $this->clientStub->executeRequest();
         $this->fail('Excepted \\RuntimeException to be thrown.');
     } catch (\RuntimeException $e) {
     }
     $this->clientStub->addSourceText('The quick brown fox jumps over the lazy dog.');
     try {
         $response = $this->clientStub->executeRequest();
         $this->fail('Excepted \\RuntimeException to be thrown.');
     } catch (\RuntimeException $e) {
     }
     $this->clientStub->setTargetLanguage('fr');
     $response = $this->clientStub->executeRequest();
     $this->assertInstanceOf('\\Google\\Api\\Response', $response);
     $this->assertTrue($response->isSuccess());
     $this->assertInstanceOf('\\Google\\Api\\Response\\Data\\Translate', $response->getData());
 }