public void Router_in_general_must_evict_terminated_routees()
{
var router = Sys.ActorOf(new RoundRobinPool(2).Props(Props.Create<Echo>()), "router");
router.Tell("", TestActor);
router.Tell("", TestActor);
var c1 = ExpectMsg<IActorRef>();
var c2 = ExpectMsg<IActorRef>();
Watch(router);
Watch(c2);
c2.Tell(PoisonPill.Instance);
ExpectMsg<Terminated>();
AwaitCondition(() => ((RoutedActorRef) router).Children.Count() == 1);
router.Tell("", TestActor);
var msg1 = ExpectMsg<IActorRef>();
msg1.ShouldBe(c1);
router.Tell("", TestActor);
var msg2 = ExpectMsg<IActorRef>();
msg2.ShouldBe(c1);
}