public function testApiSetComponent_SetsComponent_WhenComponentIsProvided()
{
$server = $this->createServer();
$component = $this->createComponent();
$handler = $this->createSessionHandler();
$session = $this->createSession($server, $component, $handler);
$session->setComponent($new = $this->createComponent());
$this->assertSame($new, $session->getComponent());
}