def METHOD_NAME(client, monkeypatch, elasticsearch_transaction_index, awards_and_transactions):
    setup_elasticsearch_test(monkeypatch, elasticsearch_transaction_index)
    resp = client.post(
        "/api/v2/search/spending_by_category/cfda",
        content_type="application/json",
        data=json.dumps({"filters": {"time_period": [{"start_date": "2008-10-01", "end_date": "2009-09-30"}]}}),
    )
    expected_response = {
        "category": "cfda",
        "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