def METHOD_NAME(self, stub_broker, state_middleware, stub_worker, frozen_datetime):
    @remoulade.actor
    def error():
        raise Exception()
    remoulade.declare_actors([error])
    msg = error.send()
    stub_broker.join(error.queue_name)
    stub_worker.join()
    state = state_middleware.backend.get_state(msg.message_id)
    assert state.status == StateStatusesEnum.Failure
    assert state.end_datetime.isoformat() == "2020-02-03T00:00:00+00:00"