anchor.diff:  succeed_test() ->
       {ok, Meck} = start_meck(),
       try
  -        {ok, _} = watts_oidc_client:login_succeeded(#{token => bad}),
  -        {ok, _} = watts_oidc_client:login_succeeded(#{token => good})
  +        {ok, _} = watts_oidc_client:login_succeeded(#{token => bad}, type),
  +        {ok, _} = watts_oidc_client:login_succeeded(#{token => good}, type)
       after
           ok = stop_meck(Meck)
       end,
  
positive.code: fail_test() ->
      {ok, Meck} = start_meck(),
      try
          {ok, _} = watts_oidc_client:login_failed(internal, {token_invalid, blah}),
          {ok, _} = watts_oidc_client:login_failed(internal, {bad_user_agent, blah}),
          {ok, _} = watts_oidc_client:login_failed(internal, {bad_peer_ip, blah}),
          {ok, _} = watts_oidc_client:login_failed(internal, {bad_cookie, blah}),
          {ok, _} = watts_oidc_client:login_failed(session_not_found,  blah),
          {ok, _} = watts_oidc_client:login_failed(blah,  blah)
      after
          ok = stop_meck(Meck)
      end,
  
negative.code:     ErrorSession = fun(_Msg) ->
                             {ok, Pid2}
                     end,
      ReturnSession = fun(_) ->
                              {ok, Pid1}
                      end,
      Cookies = fun(Req) -> {[{watts_http_util:cookie_name(), <<"data">>}], Req} end,
      ok = test_util:meck_new(MeckModules),
      ok = meck:expect(watts, login_with_oidcc, Login),
      ok = meck:expect(watts, session_with_error, ErrorSession),
      ok = meck:expect(watts_session_mgr, session_terminating, fun(_) -> ok end),
      ok = meck:expect(watts_session_mgr, get_session, ReturnSession),
      ok = meck:expect(cowboy_req, cookies, Cookies),
      {ok, {MeckModules, Pid1, Pid2}}.
  
  
  