public function testApiState_CallsModelMethod()
{
$test = $this->getTest();
$state = 'state';
$model = $test->getMock(RuntimeModel::class, [], [], '', false);
$model->expects($test->once())->method('getState')->will($test->returnValue($state));
$runtime = $this->createRuntime();
$test->setProtectedProperty($runtime, 'model', $model);
$test->assertSame($state, $runtime->state());
}