public function check(RunnerServiceContext $context)
    {
        parent::check($context);

        $state = $context->getTestSession()->getState();

        if ($state == AssessmentTestSessionState::SUSPENDED) {
            throw new QtiRunnerPausedException();
        }

        return true;
    }