public function testApiGetThreads_CallsModelMethod()
{
$manager = $this->createRuntimeManager();
$promise = new Promise();
$thread = $manager->getThread();
$thread->expects($this->once())->method('getThreads')->will($this->returnValue($promise));
$this->assertSame($promise, $manager->getThreads());
}