Scalatest akka actor testkit
// Your scalatest shoudl extend extends TestKit(ActorSystem("test")) // Then create actor as following val mockedActorRef: ActorRef = TestActorRef(new ModelsRepositoryFetcherActor(MyCaseClassParam("a")))