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:         (
              method,
              "OZ_URL:9443/PREFIX/URN",
              [?CONTENT_TYPE_HEADER, MH, DMH, headers],
              body,
              [
                  {ssl_options, [{keyfile, key_path}, {certfile, cert_path}]},
                  options
              ]
          ) when MH =:= MacaroonHeader, DMH =:= DischMacaroonsHeader -> ok
      end),
  
      ?assertEqual(ok, oz_endpoint:auth_request(
          {user, {?MACAROON, ?DISCH_MACAROONS}}, "/URN", method,
          [headers], body, [options])),
      ?assertEqual(ok, oz_endpoint:noauth_request(
          {user, {?MACAROON, ?DISCH_MACAROONS}}, "/URN", method,
          [headers], body, [options])),
      ?assertEqual(ok, oz_endpoint:auth_request(
          {try_user, {?MACAROON, ?DISCH_MACAROONS}}, "/URN", method,
          [headers], body, [options])),
      ?assertEqual(ok, oz_endpoint:noauth_request(
          {try_user, {?MACAROON, ?DISCH_MACAROONS}}, "/URN", method,
          [headers], body, [options])),
  
      ?assert(meck:validate(http_client)),
  
negative.code: -define(CONTENT_TYPE_HEADER,
      {<<"content-type">>, <<"application/json">>}
  ).
  
  % Request header with HTTP basic auth
  -define(BASIC_AUTH_HEADER, <<"Basic ", (base64:encode(<<"user:password">>))/binary>>).
  basic_auth_header() ->
      {<<"Authorization">>, ?BASIC_AUTH_HEADER}.
  
  
  %%%===================================================================
  %%% Tests description
  