anchor.diff:      Subscribe = packet:gen_subscribe(53, "qos0/test", 0),
       Suback = packet:gen_suback(53, 0),
       {ok, Socket} = packet:do_client_connect(Connect, Connack, []),
  -    enable_on_subscribe(),
  -    ok = gen_tcp:send(Socket, Subscribe),
  -    disable_on_subscribe(),
  +    ok = gen_tcp:send(Socket, Subscribe),
       ok = packet:expect_packet(Socket, "suback", Suback),
       ok = gen_tcp:close(Socket).
   
  
positive.code:                                          {"qos2/test", 2}]),
      SubNack = packet:gen_suback(3, [not_allowed, not_allowed, not_allowed]),
      {ok, Socket} = packet:do_client_connect(Connect, Connack, []),
      enable_on_subscribe(),
      ok = gen_tcp:send(Socket, Subscribe),
      disable_on_subscribe(),
      ok = packet:expect_packet(Socket, "subNack", SubNack),
      ok = gen_tcp:close(Socket).
  
  
negative.code:     Puback1 = packet:gen_puback(300),
      Publish2 = packet:gen_publish("subpub/qos1", 1, <<"message">>, [{mid, 1}]),
      {ok, Socket} = packet:do_client_connect(Connect, Connack, []),
      enable_on_publish(),
      ok = gen_tcp:send(Socket, Subscribe),
      ok = packet:expect_packet(Socket, "suback", Suback),
      ok = gen_tcp:send(Socket, Publish1),
      ok = packet:expect_packet(Socket, "puback", Puback1),
      ok = packet:expect_packet(Socket, "publish", Publish2),
      disable_on_publish(),
      ok = gen_tcp:close(Socket).
  
  