def METHOD_NAME(client, entity_person):
    """Test record retrieval."""
    item_url = url_for('invenio_records_rest.ent_item', pid_value='ent_pers')
    res = client.get(item_url)
    assert res.status_code == 200
    assert res.headers['ETag'] == f'"{entity_person.revision_id}"'
    data = get_json(res)
    assert entity_person.dumps() == data['metadata']
    assert entity_person.dumps() == data['metadata']
    # Check metadata
    for k in ['created', 'updated', 'metadata', 'links']:
        assert k in data
    # Check self links
    res = client.get(to_relative_url(data['links']['self']))
    assert res.status_code == 200
    assert data == get_json(res)
    assert entity_person.dumps() == data['metadata']
    list_url = url_for('invenio_records_rest.ent_list', pid='ent_pers')
    res = client.get(list_url)
    assert res.status_code == 200
    data = get_json(res)
    entity_person = entity_person.replace_refs()
    entity_person['organisations'] = entity_person.organisation_pids
    entity_person['type'] = EntityType.PERSON
    entity_person['type'] = EntityType.PERSON
    assert data['hits']['hits'][0]['metadata'] == entity_person.replace_refs()