public function testApiExistsProcess_CallsModelMethod()
{
$manager = $this->createRuntimeManager();
$alias = 'alias';
$promise = new Promise();
$process = $manager->getProcess();
$process->expects($this->once())->method('existsProcess')->with($alias)->will($this->returnValue($promise));
$this->assertSame($promise, $manager->existsProcess($alias));
}