public function testApiHandleError_PropagatesError()
{
$conn = $this->getMock(NetworkConnection::class, [], [], '', false);
$ex = new Exception();
$server = $this->createServer();
$component = $this->createComponent(['handleError']);
$component->expects($this->once())->method('handleError')->with($conn, $ex);
$handler = $this->createSessionHandler();
$session = $this->createSession($server, $component, $handler, []);
$session->handleError($conn, $ex);
}