public function testShouldThrowExceptionWhenZeroMQCantSendMessage()
 {
     $exception = new \ZMQSocketException('Socket exception');
     $this->socket->expects($this->once())->method('sendMulti')->will($this->throwException($exception));
     $this->setExpectedException('Wookieb\\ZorroRPC\\Exception\\TransportException', 'Cannot send request');
     try {
         $request = new Request(MessageTypes::ONE_WAY, 'method');
         $this->object->sendRequest($request);
     } catch (TransportException $e) {
         $this->assertSame($exception, $e->getPrevious());
         throw $e;
     }
 }