def METHOD_NAME(self):
    from django_select2.cache import cache
    widget = GFKSelect2Widget(
        queryset=QuerySetSequence(Group.objects.all()), search_fields={'auth': {'group': ['name__icontains']}})
    widget.render('name', '1-1')
    cached_widget = cache.get(widget._get_cache_key())
    assert cached_widget['max_results'] == widget.max_results
    assert dict(cached_widget['search_fields']) == widget.search_fields
    qs = widget.get_queryset()
    assert isinstance(cached_widget['queryset'][0][0], qs.get_querysets()[0].__class__)
    assert text_type(cached_widget['queryset'][0][1]) == text_type(qs.get_querysets()[0].query)