anchor.diff:          [inets, ibrowse, ssl, config, couch_event, couch]
           ++ ExtraApps),
   
  -    couch_stats:reload(),
       #test_context{started = Apps}.
   
   stop_couch() ->
  
positive.code:     start_couch(?CONFIG_CHAIN, ExtraApps).
  
  start_couch(IniFiles, ExtraApps) ->
      ok = application:set_env(config, ini_files, IniFiles),
      ok = lager:start(),
  
  
negative.code:     meck:expect(couch_stats, update_histogram, fun(_, _) -> ok end),
      meck:expect(couch_stats, update_gauge, fun(_, _) -> ok end),
      ok.
  
  load_applications_with_stats() ->
      Wildcard = filename:join([?BUILDDIR(), "src/*/priv/stats_descriptions.cfg"]),
      [application:load(stats_file_to_app(File)) || File <- filelib:wildcard(Wildcard)],
      ok.
  
  stats_file_to_app(File) ->
      [_Desc, _Priv, App|_] = lists:reverse(filename:split(File)),
      erlang:list_to_atom(App).
  