anchor.diff:      Subscribe = packet:gen_subscribe(3265, "sub/rewrite/me", 1),
       Suback = packet:gen_suback(3265, [0]),
   
  -    enable_on_subscribe(),
  -    enable_on_publish(),
  +    enable_auth_on_subscribe(),
  +    enable_auth_on_publish(),
   
       {ok, Socket} = packet:do_client_connect(Connect, Connack, []),
       ok = gen_tcp:send(Socket, Subscribe),
  
positive.code:     ok = packet:expect_packet(Socket, "publish", PublishRewritten),
  
  
      disable_on_publish(),
      disable_on_subscribe(),
      ok = gen_tcp:close(Socket).
  
  auth_on_publish_rewrite_packet_test(_) ->
  
negative.code:     Publish1 = packet:gen_publish("sub/rewrite/topic", 0, <<"message">>, []),
      ok = packet:expect_packet(Socket, "publish", Publish1),
  
      disable_auth_on_publish(),
      disable_auth_on_subscribe(),
      ok = gen_tcp:close(Socket).
  
  
  