   alias :timer, as: Timer
   alias :sys, as: Sys
 
-  alias SMPPEX.Protocol.CommandNames
   alias Support.TCP.Server
   alias SMPPEX.Session
   alias SMPPEX.Pdu


    assert {:ok, {:pdu, reply_pdu}, _rest_data} = Server.received_data(ctx[:server]) |> SMPPEX.Protocol.parse

    assert Pdu.command_id(reply_pdu) |> CommandNames.name_by_id == {:ok, :bind_transmitter_resp}
  end

  test "handle_pdu with stop", ctx do


    assert {:ok, {:pdu, enquire_link_pdu}, _rest_data} = Server.received_data(ctx[:server]) |> SMPPEX.Protocol.parse

    assert Pdu.command_name(enquire_link_pdu) == :enquire_link
  end

  test "call with delayed reply and stop", ctx do
