def METHOD_NAME(get_record, g_p_t_f_e):
    with_actual = {'ACTUAL': 'ACTUAL'}
    g_p_t_f_e.side_effect = ['pt1', 'pt2', 'pt3']
    get_record.return_value = with_actual
    config = {'SERVER_NAME': 'http://inspirehep.net'}
    with patch.dict(current_app.config, config):
        expect_actual = JsonRef({'$ref': 'http://inspirehep.net/api/e1/1'},
                                loader=AbstractRecordLoader())
        # Force evaluation of get_record by this assertion.
        assert expect_actual == with_actual
        get_record.assert_called_with('pt1', '1')
        expect_actual = JsonRef({'$ref': '/api/e2/2'},
                                loader=AbstractRecordLoader())
        assert expect_actual == with_actual
        get_record.assert_called_with('pt2', '2')
        expect_actual = JsonRef({'$ref': '/e3/3/'},
                                loader=AbstractRecordLoader())
        assert expect_actual == with_actual
        get_record.assert_called_with('pt3', '3')