def METHOD_NAME(isolated_app):
    config = {
        'RECORDS_REST_FACETS': {
            'defenders': {
                'aggs': {
                    'jessica-jones': {
                        'terms': {
                            'field': 'defenders',
                            'size': 20,
                        },
                    },
                },
            },
        },
    }
    expected = {
        'aggs': {
            'jessica-jones': {
                'terms': {
                    'field': 'defenders',
                    'size': 20
                }
            }
        }
    }
    with isolated_app.test_request_context('?facet_name=defenders'):
        with patch.dict(isolated_app.config, config):
            result = get_facet_configuration('records-hep')
            assert expected == result