public function testApiHandleData_CallsMethodOnComponent()
{
$listener = $this->createListener();
$component = $this->createComponent();
$component->expects($this->once())->method('handleMessage')->with($this->isInstanceOf(NetworkConnection::class), $this->isInstanceOf(NetworkMessage::class));
$socket = $this->getMock(SocketInterface::class, [], [], '', false);
$socket->conn = new NetworkConnection($socket);
$server = $this->createSocketServer($listener, $component);
$server->handleData($socket, 'data');
}