public void Bug209_any_user_messages_following_a_Terminate_message_should_be_forwarded_to_DeadLetterMailbox()
{
var actor = (LocalActorRef) Sys.ActorOf(Props.Empty, "killed-actor");
Watch(actor);
Sys.EventStream.Subscribe(TestActor, typeof (DeadLetter));
actor.Tell(PoisonPill.Instance);
ExpectMsg<Terminated>();
actor.Tell(new Envelope { Message = "SomeUserMessage", Sender = TestActor });
ExpectMsg<DeadLetter>(d => ((Envelope)d.Message).Message.Equals("SomeUserMessage"));
//The actor should Terminate, exchange the mailbox to a DeadLetterMailbox and forward the user message to the DeadLetterMailbox
actor.Cell.Mailbox.ShouldBe(Sys.Mailboxes.DeadLetterMailbox);
}