public function testApiSetLoop_SetsLoop()
{
$model = $this->getMock(SelectLoop::class, [], [], '', false);
$loop = $this->getMock(Loop::class, ['getModel'], [], '', false);
$loop->expects($this->any())->method('getModel')->will($this->returnValue($model));
$runtime = $this->createModel();
$runtime->setLoop($loop);
$this->assertSame($loop, $this->getProtectedProperty($runtime, 'loop'));
$this->assertInstanceOf(LoopInterface::class, $this->getProtectedProperty($runtime, 'loopBackup'));
}