anchor.diff:      end,
       meck:unload(),
       ok.
  -
  -ensure_ibrowse() ->
  -    case ibrowse:start() of
  -        {ok, _} -> ok;
  -        {error, {already_started, _}} -> ok;
  -        Error -> Error
  -    end.
  -
  -cleanup_ibrowse() ->
  -    ibrowse:stop().
  -
  -ensure_couch() ->
  -    application:set_env(chef_authz, authz_root_url, ?authz_host),
  -    application:set_env(chef_db, couchdb_host, ?chef_host_name),
  -    application:set_env(chef_db, couchdb_port, ?chef_host_port),
  -    ensure_ibrowse().
  -
  -%% helper functions for configuring mocking.
   
   %%@doc setup mocking for a list of modules.  This would normally be
   %% called in the setup/0 method. You can optionally pass in a list of
  
positive.code:     Port.
  
  test_cleanup(_State) ->
      cleanup_ibrowse(),
      application:stop(ibrowse),
      case whereis(inet_gethost_native_sup) of
          P when is_pid(P) ->
              inet_gethost_native:terminate(shutdown, P);
  
negative.code: 
  -export([test_setup/0,
           test_cleanup/1,
           start_stats_hero/0,
           mock/1,
           mock/2,
           unmock/1,
           validate_modules/1
          ]).
  
  -include_lib("eunit/include/eunit.hrl").
  
  