def METHOD_NAME(
        client, create_schema, auth_headers_for_superuser):
    create_schema(
        'test-schema',
        experiment='CMS',
        deposit_schema={
            'type': 'object',
            'properties': {
                'nested': {
                    '$ref': 'https://analysispreservation.cern.ch/schemas/deposits/records/wrong-schema-v1.0.0.json',  # noqa
                }
            }
        })
    resp = client.get('/schemas/deposits/records/test-schema-v1.0.0',
                      headers=auth_headers_for_superuser)
    assert resp.status_code == 404