def METHOD_NAME(self, job_name, run_id, state, error_code=None):
    expected_params = {'JobName': job_name, 'RunId': run_id}
    response = {
        'JobRun': {
            'Id': run_id, 'JobName': job_name, 'CompletedOn': datetime.now(),
            'JobRunState': state}}
    self._stub_bifurcator(
        'get_job_run', expected_params, response, error_code=error_code)