title: How can one verify messages sent to self are delivered when testing Akka actors?
body: <p>I have an Actor that is similar to the following Actor in function.</p>
  
  <pre><code>case class SupervisingActor() extends Actor {
  
      protected val processRouter = //round robin router to remote workers
      override def receive = {
          case StartProcessing =&gt; { //sent from main or someplace else
              for (some specified number of process actions ){
                  processRouter ! WorkInstructions
              }
          }
          case ProcessResults(resultDetails) =&gt; {  //sent from the remote workers when they complete their work
              //do something with the results
              if(all of the results have been received){
                  //*********************
                  self ! EndProcess  //This is the line in question
                  //*********************
              }
          }
          case EndProcess {
              //do some reporting
              //shutdown the ActorSystem
          }
      }
  }
  </code></pre>
  
  <p>}</p>
  
  <p>How can I verify the EndProcess message is sent to self in tests?</p>
  
  <p>I'm using scalatest 2.0.M4, Akka 2.0.3 and Scala 1.9.2.</p>