title: could not find implicit value for parameter context : akka.actor.ActorContext
body: <p>I want to write test cases for the below program using <code>TestActorRef</code>. Nested actor scenario but when I try to create context I am facing compilation errors. Please do help me with solution.</p>
  
  <p>Main Program : </p>
  
  <pre><code>object TextCleaningScheduler extends App {
  
    val system = ActorSystem("cleanText")
  
    val projectsActor = system.actorOf( Props(classOf[DataByProjects]) )
  
    projectsActor ! ProcessDataByConnections(1,1)
  
  
  }
  
  case class ProcessDataByConnections( accID : Int, projectID : Int )
  
  class DataByProjects extends Actor {
    def receive = {
  
      case ProcessDataByConnections( accID, projectID ) =&gt; {
  
        val dbName            = "some_example"
        val connectionStr     = "cassandra://IPaddress/" + dbName
        val elasticsearchIp   = "ipaddress"
        val elasticsearchPort = "9200"
  
        val dbObject = new DatabaseOperations(dbName,
          connectionStr,
          elasticsearchIp,
          elasticsearchPort
        )
  
        val query       = "{ \"query\" : { \"match\" : { \"project_info_mapping.project_id\" : " + projectID + " } } }"
        val fetchedData = dbObject.queryData("project_instance",query,"project_instance","data")
        var counter = 0
        //for ( row &lt;- fetchedData) {
          val row = fetchedData(0)
          println(row)
          val conn              = row("project_instance_id")
          val textCleaningInfo  = row("text_cleaning")
  
          val tempConn = 3
          val queueName         = "RAWDATA_A" + accID + "_C" + tempConn
  
  
          var accInfo : Map[String, Any]   = Map( "accID" -&gt; accID , "projectID" -&gt; projectID, "conn" -&gt; tempConn )
          accInfo        += ("textCleaning" -&gt; textCleaningInfo, "wordsToRemove" -&gt;  row("remove_words"), "findAndReplace" -&gt; row("find_and_replace") )
          accInfo        += ("dataVariable" -&gt; row("data_variable_name"), "dataLabel" -&gt; row("data_variable_label") )
  
          val queueActor = context.actorOf(Props(classOf[GetAndPushQueue], accInfo ), "queue" + counter )
  </code></pre>
  
  <p>TestProgram : inside test class using flatspec scalatest framework</p>
  
  <pre><code>    val actorRef = TestActorRef[DataByProjects]
  
      actorRef ! ProcessDataByConnections(1, 1)
  
      val accInfo =1
  
      val counter = 0
  
      *val context = actorRef.underlyingActor
  
     (this line i m getting error)  actorRef.forward("child" , context.context)*
  </code></pre>
  
  <p>Information:5/29/15 11:05 AM - Compilation completed with 2 errors and 0 warnings in 17s 68ms</p>
  
  <pre><code>Error:Error:line (32)could not find implicit value for parameter context: akka.actor.ActorContext
  actorRef.forward()
                  ^
  Error:Error:line (32)not enough arguments for method forward: (implicit context: akka.actor.ActorContext)Unit.
  </code></pre>
  
  <p>Unspecified value parameter context.
      actorRef.forward()
                      ^</p>