anchor.diff:  -module(vmq_clean_session_SUITE).
  --export([
  -         %% suite/0,
  -         init_per_suite/1,
  -         end_per_suite/1,
  -         init_per_testcase/2,
  -         end_per_testcase/2,
  -         all/0
  -        ]).
   
  --export([clean_session_qos1_test/1,
  -         session_cleanup_test/1,
  -         session_present_test/1]).
  -
  --export([hook_auth_on_subscribe/3,
  -         hook_auth_on_publish/6]).
  -
  +-compile(export_all).
  +-compile(nowarn_export_all).
   
   %% ===================================================================
   %% common_test callbacks
   %% ===================================================================
  -init_per_suite(_Config) ->
  +init_per_suite(Config) ->
       cover:start(),
  -    _Config.
  +    [{ct_hooks, vmq_cth} | Config].
  +
   
   end_per_suite(_Config) ->
       _Config.
  
positive.code:     vmq_test_utils:setup(),
      vmq_server_cmd:set_config(allow_anonymous, true),
      vmq_server_cmd:set_config(retry_interval, 10),
      vmq_server_cmd:listener_start(1888, []),
      Config.
  
  end_per_testcase(_, Config) ->
      vmq_test_utils:teardown(),
      Config.
  
  all() ->
      [clean_session_qos1_test,
       session_cleanup_test,
       session_present_test].
  
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%% Actual Tests
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  clean_session_qos1_test(_) ->
      Connect = packet:gen_connect("clean-qos1-test", [{keepalive,60}, {clean_session, false}]),
      Connack1 = packet:gen_connack(0),
      Connack2 = packet:gen_connack(true, 0),
      Disconnect = packet:gen_disconnect(),
  
negative.code:     {ok, Socket2} = packet:do_client_connect(Connect, ConnackSessionPresentTrue, []),
      ok = gen_tcp:close(Socket2).
  
  session_expiration_test(_Cfg) ->
      throw(not_implemented).
  
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%% Hooks
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  hook_auth_on_subscribe(_,_, _) -> ok.
  hook_auth_on_publish(_, _, _, _, _, _) -> ok.
  
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%% Helper
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  