### Question:
JobHistoryService { public JobStatus deleteJob(JobKey jobKey) { return saveJobStatus(jobKey, StateType.DELETE); }  JobHistory addJob(JobRequest jobRequest); JobStatus deleteJob(JobKey jobKey); JobStatus updateJob(JobKey jobKey); JobStatus pauseJob(JobKey jobKey); JobStatus resumeJob(JobKey jobKey); JobStatus stopJob(JobKey jobKey); @Transactional Page<JobStatus> getAllJobs(Pageable pageable);  }### Answer:
@Test @Transactional public void deleteJob() { createJobHistory(testJobName, testGroupName, testJobType); JobKey jobKey = new JobKey(testJobName, testGroupName); JobStatus jobStatus = jobHistoryService.deleteJob(jobKey); assertThat(jobStatus.getJobHistory().getJobName()).isEqualTo(testJobName); assertThat(jobStatus.getJobHistory().getJobGroup()).isEqualTo(testGroupName); assertThat(jobStatus.getJobState()).isEqualTo(StateType.DELETE); }