def METHOD_NAME(self):
    """Test with invitation, check data in session"""
    plan = FlowPlan(flow_pk=self.flow.pk.hex, bindings=[self.binding], markers=[StageMarker()])
    session = self.client.session
    session[SESSION_KEY_PLAN] = plan
    session.save()
    data = {"foo": "bar"}
    invite = Invitation.objects.create(created_by=get_anonymous_user(), fixed_data=data)
    with patch("authentik.flows.views.executor.FlowExecutorView.cancel", MagicMock()):
        base_url = reverse("authentik_api:flow-executor", kwargs={"flow_slug": self.flow.slug})
        args = urlencode({INVITATION_TOKEN_KEY: invite.pk.hex})
        response = self.client.get(base_url + f"?query={args}")
    session = self.client.session
    plan: FlowPlan = session[SESSION_KEY_PLAN]
    self.assertEqual(plan.context[PLAN_CONTEXT_PROMPT], data)
    self.assertEqual(response.status_code, 200)
    self.assertStageRedirects(response, reverse("authentik_core:root-redirect"))