anchor.diff:      application:set_env(vmq_plugin, vmq_plugin_hooks, Hooks),
       %% we have to step out .eunit
       application:set_env(vmq_plugin, plugin_dir, ".."),
  -    application:start(vmq_plugin),
  +    ok = application:start(vmq_plugin),
       %% no plugin is yet registered
       call_no_hooks(),
   
  
positive.code: check_plugins([{plugins, Plugins}], Acc) ->
      check_plugins(Plugins, Acc);
  check_plugins([{module, {Name, Module, Fun, Arity}}|Rest], Acc) ->
      case lists:member(Module, erlang:loaded()) of
          true ->
              check_plugins(Rest, [{module_plugin, [{Name, Module, Fun, Arity}]}
                                   | Acc]);
          false ->
              {error, {not_loaded, Module}}
      end;
  check_plugins([{application, App, AppPath}|Rest], Acc) ->
      case check_plugin(App, AppPath) of
  
negative.code:     vmq_plugin_mgr:enable_module_plugin(sample_all_till_ok_hook, ?MODULE, other_sample_hook_d, 1),
      call_hooks(),
  
      io:format(user, "info all ~p~n", [vmq_plugin:info(all)]),
      io:format(user, "info only ~p~n", [vmq_plugin:info(only)]),
      % disable hooks
      vmq_plugin_mgr:disable_module_plugin(?MODULE, sample_hook, 0),
      vmq_plugin_mgr:disable_module_plugin(?MODULE, sample_hook, 1),
  