public function testApiReceive_ReturnsImmediatelyIfRequestIsReceived()
{
$name = 'name';
$protocol = new Protocol();
$channel = $this->createChannel(['handleReceiveRequest', 'handleReceiveResponse']);
$channel->expects($this->once())->method('handleReceiveRequest')->with($protocol)->will($this->returnValue(true));
$channel->expects($this->never())->method('handleReceiveResponse');
$channel->receive($name, $protocol);
}