no matching constructor found on class for arguments []
<p>I have the following test:</p>

<pre><code>  it should "ask yarn about the running jobs" in new TestScope {
    val testSender: TestProbe = TestProbe()
    val testReceiver: TestProbe = TestProbe()
    val yarnActorRef = system.actorOf(YarnActor.props(testReceiver.ref))

    testSender.send(yarnActorRef, UpdateListOfJobs(Instant.now()))
    testReceiver.expectMsg(YarnJobStatus("Not running"))
  }
</code></pre>

<p>For this actor:</p>

<pre><code>object YarnActor {
  trait Message

  case class UpdateListOfJobs(timeStamp: Instant) extends Message

  def props(stateActorRef: ActorRef) = Props(new YarnActor(stateActorRef))
}

class YarnActor(stateActorRef: ActorRef) extends Actor with ActorLogging {
  override def receive: Receive = {
    case UpdateListOfJobs(timeStamp) =&gt; {
      //check if the job is still running
      val address = url("someUrlAddress")
      val status: Future[String] = Await.ready(Http(address OK as.String), 1 second)

      status onComplete {
        case Success(message) =&gt; stateActorRef ! YarnJobStatus(message)
        case Failure(_) =&gt; stateActorRef ! YarnJobStatus("Not running")
      }
    }
  }
}
</code></pre>

<p>I'm getting:</p>

<pre><code>[info] - should ask yarn about the running jobs *** FAILED ***
[info]   java.lang.IllegalArgumentException: no matching constructor found on class myPackage.YarnActor for arguments []
</code></pre>

<p>Why is this error appearing?
In the companion object I'm constructing my actor with 1 parameter(which should be all it needs).</p>