def METHOD_NAME(client, acq_invoice_fiction_martigny):
    """Test record retrieval."""
    item_url = url_for('invenio_records_rest.acin_item', pid_value='acin1')
    acq_invoice = acq_invoice_fiction_martigny
    res = client.get(item_url)
    assert res.status_code == 200
    assert res.headers['ETag'] == f'"{acq_invoice.revision_id}"'
    data = get_json(res)
    assert acq_invoice.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 acq_invoice.dumps() == data['metadata']
    list_url = url_for('invenio_records_rest.acin_list', pid='acin1')
    res = client.get(list_url)
    assert res.status_code == 200
    data = get_json(res)
    assert data['hits']['hits'][0]['metadata'] == acq_invoice.replace_refs()