@Test public void timerIsSetToJobTriggerTimeForExecution() {
final Date triggerTime = new Date(1000);
when( mockTrigger_1.hasNextFireTime() ).thenReturn(triggerTime, triggerTime, triggerTime, null);
when( mockTrigger_1.nextFireTime() ).thenReturn(triggerTime);
Job job = new Job() {
public void execute(JobContext ctx) {
// Even though the clock has been advanced to 5000, the job should run
// with the time set its trigger time.
assertThat(scheduler.getCurrentTime(), is(1000L));
}