anchor.diff:      ErrorSession = fun(_Msg) ->
                              {ok, Pid2}
                      end,
  +    ReqCred = fun(<<"test2">>, _, _) ->
  +                      {ok, something}
  +              end,
  +
  +    RetUrls = fun(rsp3) ->
  +                      {url_good3, url_bad3}
  +              end,
  +
       ReturnSession = fun(_) ->
                               {ok, Pid1}
                       end,
  
positive.code: 
  
  start_meck() ->
      MeckModules = [watts, watts_session_mgr, cowboy_req],
      {ok, Pid1} = watts_session:start_link(<<"1">>),
      ok = watts_session:set_token(#{}, Pid1),
      ok = watts_session:set_type(oidc, Pid1),
      {ok, Pid2} = watts_session:start_link(<<"2">>),
      ok = watts_session:set_token(#{}, Pid2),
      ok = watts_session:set_type({rsp, login, ui}, Pid2),
      Login = fun(TokenMap, _) ->
                      case TokenMap of
                          #{token := good} ->
                              {ok, #{session_pid => Pid1, session_type => oidc}};
                          _ ->
                              {error, bad_token}
                      end
  
negative.code:     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, request_credential_for, ReqCred),
      ok = meck:expect(watts, logout, fun(_) -> ok end),
      ok = meck:expect(watts_rsp, get_return_urls, RetUrls),
      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, Pid3}}.
  
  
  stop_meck({MeckModules, Pid1, Pid2, Pid3}) ->
      ok = watts_session:close(Pid1),
      ok = watts_session:close(Pid2),
      ok = watts_session:close(Pid3),
      ok = test_util:meck_done(MeckModules),
      ok.
  