def METHOD_NAME(get_db_rec, get_es_rec):
    with_es_record = {'ES': 'ES'}
    with_db_record = {'DB': 'DB'}
    get_es_rec.return_value = with_es_record
    get_db_rec.return_value = with_db_record
    db_rec = replace_refs({'$ref': _build_url()}, 'db')
    es_rec = replace_refs({'$ref': _build_url()}, 'es')
    assert db_rec == with_db_record
    assert es_rec == with_es_record