public function testApiReceive_DoesNothing_WhenResponseIsNotHandledByRouter()
{
$name = 'name';
$protocol = new Protocol();
$mock = $this->getMock(RouterComposite::class, [], [], '', false);
$mock->expects($this->once())->method('handle')->with($name, $protocol)->will($this->returnValue(false));
$channel = $this->createChannel(['emit', 'handleReceiveRequest', 'handleReceiveResponse', 'getInput']);
$channel->expects($this->never())->method('emit');
$channel->expects($this->once())->method('handleReceiveRequest')->with($protocol)->will($this->returnValue(false));
$channel->expects($this->once())->method('handleReceiveResponse')->with($protocol)->will($this->returnValue(false));
$channel->expects($this->once())->method('getInput')->will($this->returnValue($mock));
$channel->receive($name, $protocol);
}