@Test
public void testAcceptJob() throws Exception {

  replayAll();
  Job job = new JobImpl();
  job.setStatus(Status.DISPATCHING);
  assertEquals(Status.DISPATCHING, job.getStatus());
  jobProducer.acceptJob(job);
  assertEquals(Status.RUNNING, job.getStatus());
}