// Create scheduled job
ScheduleGroup scheduleGroup = scheduleJobManagementService.createGroup("Test group");
Assert.assertNotNull(scheduleGroup);
ScheduleJobCreateParameters jobParameters = new ScheduleJobCreateParameters();
jobParameters.setName("Test Job");
jobParameters.setDescription("Nothing to do");
jobParameters.setTimezone("UTC");
jobParameters.setCron("0 0 0 * * ?");
jobParameters.setEnabled(true);
jobParameters.setClusterGroupId(clusterGroup.getId());
jobParameters.setScheduleGroupId(scheduleGroup.getId());
jobParameters.setStrategy(ScheduleExecutionStrategy.CIRCULAR);
jobParameters.setActionIdentifier("action.type");
jobParameters.setActionDefinition("action.data".getBytes());
ScheduleJob scheduleJob = scheduleJobManagementService.createJob(jobParameters);
Assert.assertNotNull(scheduleJob);
// Try to delete assigned jobs