def METHOD_NAME(server, collection, admin):
    resp = server.request(
        path='/collection/%s/metadata' % collection['_id'],
        user=admin,
        method='PUT',
        body=json.dumps(METADATA),
        type='application/json')
    assertStatusOk(resp)
    assert resp.json['meta'] == METADATA
    # Check that fetching the object again yields the same result
    newDoc = server.request(
        path='/collection/%s' % collection['_id'],
        user=admin,
        method='GET')
    assert newDoc.json['meta'] == METADATA