anchor.diff:      ?assertMatch({ok, "401", _, _}, AuthFail),
       ?assertMatch({ok, "404", _, _}, AuthSuccess).
   
  -rest_cert_auth(Config) ->
  +cert_auth(Config) ->
       % given
       [Worker | _] = ?config(op_worker_nodes, Config),
       Endpoint = rest_endpoint(Worker),
  
positive.code: end_per_suite(Config) ->
      test_node_starter:clean_environment(Config).
  
  init_per_testcase(_, Config) ->
      ssl:start(),
      ibrowse:start(),
      mock_gr_certificates(Config),
      Config.
  
  end_per_testcase(_, Config) ->
      unmock_gr_certificates(Config),
      ibrowse:stop(),
  
negative.code:     Loc3 = proplists:get_value("location", Headers3),
      ?assertMatch({ok, "404", _, _}, ibrowse:send_req(Loc3, [], get, [], [KnownCertOpt])).
  
  internal_error_when_handler_crashes(Config) ->
      % given
      Workers = [Worker | _] = ?config(op_worker_nodes, Config),
      Endpoint = rest_endpoint(Worker),
      test_utils:mock_expect(Workers, rest_handler, is_authorized,
          fun(_, _) -> throw(test_crash) end),
  
      % when
      {ok, Status, _, _} =  ibrowse:send_req(Endpoint ++ "random_path", [], get, [], []),
  
      % then
      ?assertEqual("500", Status).
  
  
  %%%===================================================================
  %%% SetUp and TearDown functions
  %%%===================================================================
  