final Date triggerTime_1 = new Date(1000);
final Date triggerTime_2 = new Date(2000);
when( mockTrigger_1.hasNextFireTime() ).thenReturn(triggerTime_1);
when( mockTrigger_2.hasNextFireTime() ).thenReturn(triggerTime_2);
JobHandle jobHandle_1 = scheduler.scheduleJob(mockJob_1, this.mockContext_1, mockTrigger_1);
JobHandle jobHandle_2 = scheduler.scheduleJob(mockJob_2, this.mockContext_2, mockTrigger_2);
assertThat(scheduler.getTimeToNextJob(), is(triggerTime_1.getTime()));
scheduler.removeJob(jobHandle_1);
assertThat(scheduler.getTimeToNextJob(), is(triggerTime_2.getTime()));