public function testApiStopThread_CallsModelMethod()
{
$manager = $this->createRuntimeManager();
$alias = 'alias';
$params = ['param' => 'value'];
$promise = new Promise();
$thread = $manager->getThread();
$thread->expects($this->once())->method('stopThread')->with($alias, $params)->will($this->returnValue($promise));
$this->assertSame($promise, $manager->stopThread($alias, $params));
}