public function testApiSetComponent_SetsNullComponent_WhenComponentIsNotProvided()
{
$server = $this->createServer();
$component = $this->createComponent();
$handler = $this->createSessionHandler();
$session = $this->createSession($server, $component, $handler);
$session->setComponent();
$this->assertInstanceOf(NullServer::class, $session->getComponent());
}