public function testApiHandleDisconnect_PropagatesDisconnection_WhenConnectionControllerDoesExist()
{
$server = $this->createServer();
$router = $this->createRouter($server);
$conn = $this->getMock(NetworkConnection::class, [], [], '', false);
$conn->controller = $this->createComponent();
$conn->controller->expects($this->once())->method('handleDisconnect')->with($conn);
$router->handleDisconnect($conn);
}