### Question:
DefaultJenkinsClient implements JenkinsClient { @Override public JenkinsJob getJob(String job) { String path = job.replaceAll("/job/", "/").replaceAll("/", "/job/"); String jobPath = jsonClient.getUrl("job/%s", path); String jobName = StringUtils.substringAfterLast(jobPath, "/"); return new JenkinsJob( jobName, jobPath ); } DefaultJenkinsClient(JsonClient jsonClient); @Override JenkinsJob getJob(String job); @Override JenkinsInfo getInfo();  }### Answer:
@Test public void getSimpleJobUrl() { JenkinsJob test = jenkinsClient.getJob("test"); assertEquals("test", test.getName()); assertEquals("http: }
@Test public void getFolderJobUrl() { JenkinsJob test = jenkinsClient.getJob("test/test-master/test-master-build"); assertEquals("test-master-build", test.getName()); assertEquals("http: }
@Test public void getCompleteFolderJobUrl() { JenkinsJob test = jenkinsClient.getJob("test/job/test-master/job/test-master-build"); assertEquals("test-master-build", test.getName()); assertEquals("http: }