HashMap<String, ParamValue> newJobParams = new HashMap<String, ParamValue>( jobParams );
newJobParams.put( "newKey", new StringParamValue( "" ) );
schedulerSvc.updateJobToUseComplexTrigger( jobId, newJobParams, jobTrigger );
Assert.assertEquals( 1, schedulerSvc.getJobs().length );
Job job = schedulerSvc.getJobs()[0];
jobTrigger = (ComplexJobTrigger) job.getJobTrigger();
Assert.assertEquals( (Integer) startingMinute,
( (IncrementalRecurrence) jobTrigger.getMinuteRecurrences().get( 0 ) ).getStartingValue() );
Assert.assertEquals( (Integer) 5, ( (IncrementalRecurrence) jobTrigger.getMinuteRecurrences().get( 0 ) )
.getIncrement() );
Assert.assertTrue( job.getJobParams().containsKey( "newKey" ) );
Assert.assertEquals( new Date(start), jobTrigger.getStartTime() );
Assert.assertEquals( new Date(end), jobTrigger.getEndTime() );
}