def METHOD_NAME(mocker, client, model_TransitAgency):
    mock_session = mocker.patch("benefits.enrollment.views.session")
    mock_session.logged_in.return_value = True
    mock_session.agency.return_value = model_TransitAgency
    path = reverse(ROUTE_SUCCESS)
    response = client.get(path)
    assert response.status_code == 200
    assert response.template_name == TEMPLATE_SUCCESS
    assert {"origin": reverse(ROUTE_LOGGED_OUT)} in mock_session.update.call_args