JobInstance jobInstance5 = new JobInstance(5l, job5.getName());
Map<String, JobParameter> parametersMap1 = new HashMap<String, JobParameter>();
parametersMap1.put("param1", new JobParameter("test", true));
parametersMap1.put("param2", new JobParameter(123l, false));
DefaultJobParametersValidator jobParametersValidator = new DefaultJobParametersValidator();
String[] requiredStrings = new String[] {"myRequiredString"};
jobParametersValidator.setRequiredKeys(requiredStrings);
job5.setJobParametersValidator(jobParametersValidator);
Map<String, JobParameter> parametersMap5 = new HashMap<String, JobParameter>();
parametersMap5.put("somthingElse", new JobParameter("test", true));