anchor.diff:      Workers = ?config(op_worker_nodes, Config),
       application:start(ssl2),
       hackney:start(),
  -    test_utils:mock_new(Workers, rest_handler),
  +    test_utils:mock_new(Workers, files),
       Config;
   init_per_testcase(_, Config) ->
       application:start(ssl2),
  
positive.code:     % given
      Workers = [Worker | _] = ?config(op_worker_nodes, Config),
      Endpoint = rest_endpoint(Worker),
      test_utils:mock_expect(Workers, rest_handler, is_authorized, fun test_throw_400/2),
  
      % when
      {ok, Status, _, _} = do_request(get, Endpoint ++ "random_path"),
  
      % then
      ?assertEqual(400, Status).
  
negative.code:     Endpoint = rest_endpoint(Worker),
  
      % when
      AuthFail = do_request(get, Endpoint ++ "files", [{<<"X-Auth-Token">>, <<"invalid">>}]),
      AuthSuccess1 = do_request(get, Endpoint ++ "files", [{<<"X-Auth-Token">>, ?MACAROON}]),
      AuthSuccess2 = do_request(get, Endpoint ++ "files", [{<<"Macaroon">>, ?MACAROON}]),
  
      % then
      ?assertMatch({ok, 401, _, _}, AuthFail),
      ?assertMatch({ok, 200, _, _}, AuthSuccess1),
      ?assertMatch({ok, 200, _, _}, AuthSuccess2).
  
  cert_auth(Config) ->
      % given
  