public function testApiStartThreads_RejectsPromise()
{
$manager = $this->createThreadManager();
$aliases = ['alias1', 'alias2'];
$callable = $this->createCallableMock();
$callable->expects($this->once())->method('__invoke')->with($this->isInstanceOf(RejectionException::class));
$manager->stopThreads($aliases)->then(null, $callable);
}