public function testApiCreateThread_InvokesValidCommand()
{
$manager = $this->createThreadManager();
$manager->createThread($alias = 'alias', $name = 'name', $flags = 'flags');
$command = $this->getCommand();
$this->assertInstanceOf(RuntimeCommand::class, $command);
$this->assertSame('thread:create', $command->getCommand());
$this->assertSame(['alias' => $alias, 'name' => $name, 'flags' => $flags], $command->getParams());
}