public function testTorrentSetShouldThrowAnExceptionWithAnInvalidSessionId()
 {
     $arguments = ['downloadLimit' => 200, 'peer-limit' => 10];
     $requestBody = '{"method":"torrent-set","arguments":{"ids":[42,1337],"downloadLimit":200,"peer-limit":10}}';
     $invalidSessionId = uniqid();
     $this->sendRequest($requestBody, $invalidSessionId)->andThrow($this->generateCSRFException());
     try {
         $this->rpcClient->torrentSet($invalidSessionId, self::TORRENT_IDS, $arguments);
     } catch (CSRFException $e) {
         $this->assertSame($this->sessionId, $e->getSessionId());
     }
 }