272829303132333435
// 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); }