anchor.diff:  %% expectations
   validate_modules(Modules) ->
       [?assert(meck:validate(M)) || M <- Modules].
  -
  
positive.code:     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
  
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").
  
  