   end
 
   test "stop", context do
-
     ESME.stop(context[:esme])
-
     :timer.sleep(50)
 
     assert [{:init}, {:handle_stop}] = SupportESME.callbacks_received_backuped(context[:callback_backup])
     refute Process.alive?(context[:esme])
-
   end
 
   test "cast", context do
     ref = make_ref
-
     ESME.cast(context[:esme], ref)
-
     :timer.sleep(10)
 
     assert [{:init}, {:handle_cast, ref}] == SupportESME.callbacks_received(context[:esme])


  test "call", context do
    ref = make_ref

    ESME.call(context[:esme], ref)
    assert [{:init}, {:handle_call, _, ^ref}] = SupportESME.callbacks_received(context[:esme])
  end

  test "info", context do
    ref = make_ref

    Kernel.send context[:esme], ref

    :timer.sleep(10)

    assert [{:init}, {:handle_info, ^ref}] = SupportESME.callbacks_received(context[:esme])


    ESME.send_pdu(context[:esme], pdu1)
    ESME.send_pdu(context[:esme], pdu2)
    :timer.sleep(50)

    assert {:ok, {:pdu, pdu1r}, rest_data} = Server.received_data(context[:server]) |> SMPPEX.Protocol.parse
    assert {:ok, {:pdu, pdu2r}, _} = rest_data |> SMPPEX.Protocol.parse
    assert Pdu.sequence_number(pdu1r) == 1
    assert Pdu.sequence_number(pdu2r) == 2
  end
