anchor.diff:          provider, "/URN", method)),
       ?assertEqual(ok, oz_endpoint:noauth_request(
           provider, "/URN", method)),
  -    ?assertEqual(ok, oz_endpoint:auth_request(
  -        {try_user, undefined}, "/URN", method)),
  -    ?assertEqual(ok, oz_endpoint:noauth_request(
  -        {try_user, undefined}, "/URN", method)),
   
       ?assert(meck:validate(http_client)),
       ok = meck:unload(http_client).
  
positive.code:         provider, "/URN", method, body)),
      ?assertEqual(ok, oz_endpoint:noauth_request(
          provider, "/URN", method, body)),
      ?assertEqual(ok, oz_endpoint:auth_request(
          {try_user, undefined}, "/URN", method, body)),
      ?assertEqual(ok, oz_endpoint:noauth_request(
          {try_user, undefined}, "/URN", method, body)),
  
      ?assert(meck:validate(http_client)),
      ok = meck:unload(http_client).
  
negative.code:         (
              mthd,
              "OZ_URL:9443/PREFIX/URN",
              [?CONTENT_TYPE_HEADER, BAH],
              body,
              [opts]
          ) when BAH =:= BasicAuthHeader -> ok;
          (
              mthd,
              "OZ_URL:9443/PREFIX/URN",
              [?CONTENT_TYPE_HEADER, MH, DMH],
              body,
              [
                  {ssl_options, [{keyfile, key_path}, {certfile, cert_path}]},
                  opts
              ]
          ) when MH =:= MacaroonHeader, DMH =:= DischMacaroonsHeader -> ok;
          (
              mthd,
              "OZ_URL:9443/PREFIX/URN",
              [?CONTENT_TYPE_HEADER, BAH],
              body,
              [
                  {ssl_options, [{keyfile, key_path}, {certfile, cert_path}]},
                  opts
              ]
          ) when BAH =:= BasicAuthHeader -> ok
      end),
  
      ?assertEqual(ok, oz_endpoint:auth_request(
          {user, token, {?MACAROON, ?DISCH_MACAROONS}}, "/URN", mthd, body, [opts])),
      ?assertEqual(ok, oz_endpoint:noauth_request(
          {user, token, {?MACAROON, ?DISCH_MACAROONS}}, "/URN", mthd, body, [opts])),
      ?assertEqual(ok, oz_endpoint:auth_request(
          {user, basic, ?BASIC_AUTH_HEADER}, "/URN", mthd, body, [opts])),
      ?assertEqual(ok, oz_endpoint:noauth_request(
          {user, basic, ?BASIC_AUTH_HEADER}, "/URN", mthd, body, [opts])),
  
      ?assert(meck:validate(http_client)),
      ok = meck:unload(http_client).
  