### Question:
JobService extends AbstractService { public void deleteJob(String name) { checkArgumentNotNull(name, "Name cannot be null"); client().postForLocation(SEGMENT_JOB + "/" + name + SEGMENT_DO_DELETE, null); } JobService();  JobService(JenkinsClient client); List<Job> getJobs(); Job createJob(String name, JobConfiguration configuration); Job updateJob(String name, JobConfiguration configuration); Job updateJob(Job job, JobConfiguration configuration); void deleteJob(String name); void deleteJob(Job job); Job getJob(String name); JobConfiguration getJobConfiguration(Job job); JobConfiguration getJobConfiguration(String name); Long triggerBuild(Job job); Long triggerBuild(Job job, Map<String, Object> parameters); Build getBuild(Job job, Long buildNumber); Build getBuild(String name, Long buildNumber); Build triggerBuildAndWait(Job job); Build triggerBuildAndWait(Job job, Map<String, Object> parameters);  }### Answer:
@Test(expected = IllegalArgumentException.class) public void deleteJob_WithNullJob_ThrowsException() throws Exception { service.deleteJob((Job) null); }
@Test(expected = IllegalArgumentException.class) public void deleteJob_WithNullJobName_ThrowsException() throws Exception { service.deleteJob(new Job()); }
@Test public void deleteJob() throws Exception { Job job = new Job().setName("j"); service.deleteJob(job); verify(client).postForLocation("/job/j/doDelete", null); }