public function testApiStopThread_InvokesValidCommand()
{
$manager = $this->createThreadManager();
$manager->stopThread($alias = 'alias');
$command = $this->getCommand();
$this->assertInstanceOf(RuntimeCommand::class, $command);
$this->assertSame('thread:stop', $command->getCommand());
$this->assertSame(['alias' => $alias], $command->getParams());
}