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