2728293031323334353637
// get access to the underlying actor object TickTock actor = actorRef.underlyingActor(); // access the methods the actor object and directly pass arguments and // test actor.tock(new Tock("tock something")); Assert.assertTrue(actor.state); } @Test