def METHOD_NAME(self):
    response = {
        "took": 2,
        "timed_out": False,
        "_shards": {"total": 1, "successful": 1, "skipped": 0, "failed": 0},
        "hits": {"total": {"value": 1001, "relation": "eq"}, "max_score": None, "hits": []},
        "aggregations": {
            "group_by_state": {
                "doc_count_error_upper_bound": -1,
                "sum_other_doc_count": 828,
                "buckets": [
                    {"key": "CO", "doc_count": 14, "average_balance": {"value": 32460.35714285714}},
                    {"key": "AZ", "doc_count": 14, "average_balance": {"value": 31634.785714285714}},
                ],
            }
        },
    }
    expected = {
        "columns": [
            {"friendly_name": "group_by_state", "name": "group_by_state", "type": "string"},
            {
                "friendly_name": "group_by_state.average_balance.value",
                "name": "group_by_state.average_balance.value",
                "type": "float",
            },
        ],
        "rows": [
            {
                "group_by_state": "CO",
                "group_by_state.average_balance.value": 32460.35714285714,
            },
            {
                "group_by_state": "AZ",
                "group_by_state.average_balance.value": 31634.785714285714,
            },
        ],
    }
    fields = ["group_by_state", "group_by_state.average_balance.value"]
    self.assertDictEqual(ElasticSearch2._parse_results(fields, response), expected)