@Test
public void testForwardingActor() {
ActorRef forwardingActorRef = _system.actorOf(new Props(
new UntypedActorFactory() {
public UntypedActor create() {
return new ForwardingActor(testActor());
}
}));
// pass the reference to implicit sender testActor() otherwise
// message end up in dead mailbox
forwardingActorRef.tell("test message", super.testActor());