title: Is there a way to pause a unit test without blocking the thread
body: <p>I'm using play 1.2.4 and I'm trying to set up a unit test to test a job.
  My job runs at every 2 second and changes the status of certain objects based on some conditions. This is what I use to do this.</p>
  
  <pre><code>@Every("2s")
  public class GameScheduler extends Job {
      public void doJob(){
          //Fetch of object from db and status change based on conditions happens here
      }
  }
  </code></pre>
  
  <p>Now in my unit test, I setup those conditions but I want the test to wait say 3 seconds before fetching one of the setup objects and do an assert Equals on its status to see if the job... well did it's job.</p>
  
  <p>If I use </p>
  
  <pre><code>pause(3000);
  </code></pre>
  
  <p>or something like</p>
  
  <pre><code>try {
      Thread.sleep(3000);
  } catch (InterruptedException e) {
      e.printStackTrace();
  }
  </code></pre>
  
  <p>The test stops but the job also stops. It seems like the job and the test are on the same thread. Is there a way to pause the test without stopping the job? Something like the await() method in the controller</p>