anchor.diff:                                   [{keepalive,10}, {username, "whatever"},
                                     {password, "whatever"}]),
       Connack = packet:gen_connack(0),
  -    vmq_plugin_mgr:enable_module_plugin(
  +    ok = vmq_plugin_mgr:enable_module_plugin(
         auth_on_register, ?MODULE, hook_change_subscriber_id, 5),
  -    vmq_plugin_mgr:enable_module_plugin(
  +    ok = vmq_plugin_mgr:enable_module_plugin(
         on_register, ?MODULE, hook_on_register_changed_subscriber_id, 3),
       {ok, Socket} = packet:do_client_connect(Connect, Connack, []),
  -    vmq_plugin_mgr:disable_module_plugin(
  -      on_register, ?MODULE, hook_on_register_changed_subscriber_id, 5),
  -    vmq_plugin_mgr:disable_module_plugin(
  +    ok = vmq_plugin_mgr:disable_module_plugin(
  +      on_register, ?MODULE, hook_on_register_changed_subscriber_id, 3),
  +    ok = vmq_plugin_mgr:disable_module_plugin(
         auth_on_register, ?MODULE, hook_change_subscriber_id, 5),
       ok = gen_tcp:close(Socket).
   
  
positive.code: invalid_id_0_311_test(_) ->
      Connect = packet:gen_connect(empty, [{keepalive,10},{proto_ver,4}]),
      Connack = packet:gen_connack(0),
      vmq_plugin_mgr:enable_module_plugin(
        auth_on_register, ?MODULE, hook_empty_client_id_proto_4, 5),
      {ok, Socket} = packet:do_client_connect(Connect, Connack, []),
      vmq_plugin_mgr:disable_module_plugin(
        auth_on_register, ?MODULE, hook_empty_client_id_proto_4, 5),
      ok = gen_tcp:close(Socket).
  
  
negative.code:     Connect = packet:gen_connect("connect-uname-pwd-test", [{keepalive,10}, {username, "user"},
                                                              {password, "password9"}]),
      Connack = packet:gen_connack(0),
      ok = vmq_plugin_mgr:enable_module_plugin(
        auth_on_register, ?MODULE, hook_uname_password_success, 5),
      {ok, Socket} = packet:do_client_connect(Connect, Connack, []),
      ok = vmq_plugin_mgr:disable_module_plugin(
        auth_on_register, ?MODULE, hook_uname_password_success, 5),
      ok = gen_tcp:close(Socket).
  
  