### Question:
DefaultWikiCreator implements WikiCreator { @Override public JobStatus getJobStatus(String wikiId) { List<String> jobId = getJobId(wikiId); Job job = jobExecutor.getJob(jobId); if (job != null) { return job.getStatus(); } else { return jobStatusStore.getJobStatus(jobId); } }  @Override Job createWiki(WikiCreationRequest request); @Override JobStatus getJobStatus(String wikiId);  }### Answer:
@Test public void getJobStatus() throws Exception { Job job = mock(Job.class); JobStatus jobStatus1 = mock(JobStatus.class); when(job.getStatus()).thenReturn(jobStatus1); when(jobExecutor.getJob(Arrays.asList("wikicreation", "createandinstall", "wiki1"))).thenReturn(job); JobStatus jobStatus2 = mock(JobStatus.class); when(jobStatusStore.getJobStatus(Arrays.asList("wikicreation", "createandinstall", "wiki2"))). thenReturn(jobStatus2); assertEquals(jobStatus1, mocker.getComponentUnderTest().getJobStatus("wiki1")); assertEquals(jobStatus2, mocker.getComponentUnderTest().getJobStatus("wiki2")); }