def METHOD_NAME(mock_get_token, client, auth_headers_for_superuser):
    access_token = 'some_token'
    glance_id = '111'
    glance_resp = {
        'count': 1,
        'links': [],
        'items': [{
            'status': 'phase0_closed',
            'gitlab_projects': [{
                'group_id': 00000,
                'link': 'https://gitlab.cern.ch/atlas/ANA-000'
            }],
            'phase0': [{
                'model_tested': 'Smart simulation',
                'main_physics_aim': 'Smart goal.',
                'dataset_used': 'Smart data',
                'methods': 'Very smart methods.'
            }],
            'pub_short_title': None,
            'short_title': 'Some smart analysis',
            'creation_date': '2018-02-15T13:14:44Z',
            'full_title': None,
            'refcode': 'ANA-00',
            'id': glance_id
        }],
        'hasMore': False,
        'offset': 0,
        'limit': 0
    }
    mock_get_token.return_value = access_token
    responses.add(
        responses.GET,
        current_app.config.get('GLANCE_GET_BY_ID_URL').format(id=glance_id),
        json=glance_resp,
        status=200)
    resp = client.get('/atlas/glance/{}'.format(glance_id),
                      headers=auth_headers_for_superuser)
    # check that requst to glance is called with correct url and access_token
    assert responses.calls[0].request.url == \
        'https://oraweb.cern.ch/ords/atlr/atlas_authdb/atlas/analysis/analysis/?client_name=cap&id={}'.format(
        glance_id)
    assert responses.calls[0].request.headers[
        'Authorization'] == 'Bearer {}'.format(access_token)
    # check the response
    assert resp.json == glance_resp['items'][0]