def METHOD_NAME(self, elasticbase, server_config, current_user_drb):
    """
    Test the query builder for {} when the client is authenticated with a
    non-admin account. This is the most complicated query, translating to
    matching owner OR public access. (That is, all datasets owned by the
    authenticated user plus all public datasets regardless of owner.)
    """
    id = str(current_user_drb.id)
    query: JSON = elasticbase._build_elasticsearch_query(
        None, None, [{"term": {"icecream": "vanilla"}}]
    )
    assert query == {
        "bool": {
            "filter": [
                {"term": {"icecream": "vanilla"}},
                {
                    "dis_max": {
                        "queries": [
                            {"term": {"authorization.owner": id}},
                            {"term": {"authorization.access": "public"}},
                        ]
                    }
                },
            ]
        }
    }