def METHOD_NAME(stub_broker, cancel_backend, api_client):
    # Given a cancel middleware
    stub_broker.add_middleware(Cancel(backend=cancel_backend))
    # If I try to cancel a id that is not a id of a message or composition
    res = api_client.post("messages/cancel/invalid_id")
    assert res.status_code == 400