def METHOD_NAME(client, monkeypatch, elasticsearch_transaction_index, awards_and_transactions):
    setup_elasticsearch_test(monkeypatch, elasticsearch_transaction_index)
    # Tests that date type where no records fall into range
    resp = client.post(
        "/api/v2/search/spending_by_category/country",
        content_type="application/json",
        data=json.dumps(
            {
                "filters": {
                    "time_period": [{"date_type": "date_signed", "start_date": "2019-12-30", "end_date": "2020-01-02"}]
                }
            }
        ),
    )
    expected_response = {
        "category": "country",
        "limit": 10,
        "page_metadata": {"page": 1, "next": None, "previous": None, "hasNext": False, "hasPrevious": False},
        "results": [],
        "messages": [get_time_period_message()],
    }
    assert resp.status_code == status.HTTP_200_OK, "Failed to return 200 Response"
    assert resp.json() == expected_response
    # Tests that date type where records fall into range
    resp = client.post(
        "/api/v2/search/spending_by_category/country",
        content_type="application/json",
        data=json.dumps(
            {
                "filters": {
                    "time_period": [{"date_type": "date_signed", "start_date": "2019-12-30", "end_date": "2020-01-16"}]
                }
            }
        ),
    )
    expected_response = {
        "category": "country",
        "limit": 10,
        "page_metadata": {"page": 1, "next": None, "previous": None, "hasNext": False, "hasPrevious": False},
        "results": [
            {"amount": 5.0, "code": "USA", "id": None, "name": "UNITED STATES"},
        ],
        "messages": [get_time_period_message()],
    }
    assert resp.status_code == status.HTTP_200_OK, "Failed to return 200 Response"
    assert resp.json() == expected_response