SpringRestJobsService extends RestJobsService { @Override public boolean cancelJob(String id) { try { restTemplate.delete(getJobsServiceUri() + "/{id}", id); return true; } catch (RestClientException e) { LOGGER.debug("Exception thrown during canceling of job {}", id, e); return false; } } @Autowired  SpringRestJobsService(
            @Value("${kogito.jobs-service.url}") String jobServiceUrl,
            @Value("${kogito.service.url}") String callbackEndpoint,
            @Autowired(required=false) RestTemplate restTemplate);   SpringRestJobsService(); @PostConstruct void initialize(); @Override String scheduleProcessJob(ProcessJobDescription description); @Override String scheduleProcessInstanceJob(ProcessInstanceJobDescription description); @Override boolean cancelJob(String id); @Override ZonedDateTime getScheduledTime(String id);  }
@Test void testCancelJob() { tested.cancelJob("123"); verify(restTemplate).delete(tested.getJobsServiceUri() + "/{id}", "123"); }