anchor.diff:  					aes_key = Key,
   					aes_vector = IV
   				},
  -				pre_channels_proto:handle_cast({send, [{foo, <<"Bar!">>}]}, State),
  +				pre_channels_proto:handle_cast({send, #envelope{contents = [{foo, <<"Bar!">>}]}}, State),
   				?assert(meck:validate(fake_transport))
   			end
   		},
  
positive.code: 		},
  		{ "looks up cookie from initial tcp message",
  			fun() ->
  				meck:expect(pre_client, connect_tcp, fun(_Pid, Cookie) ->
  					Expected = <<"foobar">>,
  					?assertEqual(Expected, Cookie)
  				end),
  
negative.code: 		{ "can send via ssl",
  			fun() ->
  				meck:expect(fake_transport, send, fun(_Socket, Message) ->
  					Expected = <<"46:{\"type\":\"undefined\",\"contents\":{\"foo\":\"Bar!\"}},">>,
  					?assertEqual(Expected, Message)
  				end),
  				State = #state{ socket = fake_socket, transport = fake_transport},
  				pre_channels_proto:handle_cast({send, #envelope{contents = [{foo, <<"Bar!">>}]}}, State),
  				?assert(meck:validate(fake_transport))
  			end
  		},
  