anchor.diff:  should_send_user_request_4() ->
       MacaroonHeader = macaroon_header(),
       DischMacaroonsHeader = disch_macaroons_header(),
  +    BasicAuthHeader = basic_auth_header(),
   
       meck:new(http_client),
       meck:expect(http_client, request, fun
  
positive.code:     meck:expect(oz_plugin, get_oz_rest_port, fun() -> 9443 end),
      meck:expect(oz_plugin, get_oz_rest_api_prefix, fun() -> "/PREFIX" end),
      meck:expect(oz_plugin, get_key_path, fun() -> key_path end),
      meck:expect(oz_plugin, get_cert_path, fun() -> cert_path end).
  
  teardown(_) ->
      ?assert(meck:validate(oz_plugin)),
  
negative.code: should_send_user_request_1() ->
      MacaroonHeader = macaroon_header(),
      DischMacaroonsHeader = disch_macaroons_header(),
      BasicAuthHeader = basic_auth_header(),
  
      meck:new(http_client),
      meck:expect(http_client, request, fun
          (
              method,
              "OZ_URL:9443/PREFIX/URN",
              [?CONTENT_TYPE_HEADER, MH, DMH],
              <<>>,
              []
          ) when MH =:= MacaroonHeader, DMH =:= DischMacaroonsHeader -> ok;
          (
              method,
              "OZ_URL:9443/PREFIX/URN",
              [?CONTENT_TYPE_HEADER, BAH],
              <<>>,
              []
          ) when BAH =:= BasicAuthHeader -> ok;
          (
              method,
              "OZ_URL:9443/PREFIX/URN",
              [?CONTENT_TYPE_HEADER, MH, DMH],
              <<>>,
              [
                  {ssl_options, [{keyfile, key_path}, {certfile, cert_path}]}
              ]
          ) when MH =:= MacaroonHeader, DMH =:= DischMacaroonsHeader -> ok;
          (
              method,
              "OZ_URL:9443/PREFIX/URN",
              [?CONTENT_TYPE_HEADER, BAH],
              <<>>,
              [
                  {ssl_options, [{keyfile, key_path}, {certfile, cert_path}]}
              ]
          ) when BAH =:= BasicAuthHeader -> ok
      end),
  
      ?assertEqual(ok, oz_endpoint:auth_request(
          {user, token, {?MACAROON, ?DISCH_MACAROONS}}, "/URN", method)),
      ?assertEqual(ok, oz_endpoint:noauth_request(
          {user, token, {?MACAROON, ?DISCH_MACAROONS}}, "/URN", method)),
  
      ?assertEqual(ok, oz_endpoint:auth_request(
          {user, basic, ?BASIC_AUTH_HEADER}, "/URN", method)),
      ?assertEqual(ok, oz_endpoint:noauth_request(
          {user, basic, ?BASIC_AUTH_HEADER}, "/URN", method)),
  
      ?assert(meck:validate(http_client)),
      ok = meck:unload(http_client).
  