### Question:
GcpJobStatusService implements JobStatusService { @Override public IngestJob get(String jobId) { log.debug("Request for getting a injection job. JobId: {}", jobId); return ingestJobRepository.findById(jobId) .orElseThrow(() -> new IngestJobNotFoundException("Not ingest job found by id = " + jobId)); }  @Override IngestJobStatusDto getStatus(String jobId, MessageHeaders headers); @Override IngestJob get(String jobId); @Override String initInjectJob(); @Override void updateJobStatus(String jobId, IngestJobStatus status); @Override void save(IngestJob ingestJob);  }### Answer:
@Test public void shouldGetIngestJob() { IngestJob ingestJob = getIngestJob(); given(ingestJobRepository.findById(INGEST_JOB_ID)).willReturn(Optional.of(ingestJob)); IngestJob actualIngestJob = jobStatusService.get(INGEST_JOB_ID); then(actualIngestJob).isEqualTo(ingestJob); InOrder inOrder = inOrder(authenticationService, ingestJobRepository, ingestJobMapper); inOrder.verify(ingestJobRepository).findById(INGEST_JOB_ID); inOrder.verifyNoMoreInteractions(); }
@Test public void shouldThrowNotFoundExceptionWhenUnableToFindIngestJob() { given(ingestJobRepository.findById(INGEST_JOB_ID)).willReturn(Optional.empty()); Throwable thrown = catchThrowable(() -> jobStatusService.get(INGEST_JOB_ID)); then(thrown) .isInstanceOf(IngestJobNotFoundException.class) .hasMessage("Not ingest job found by id = " + INGEST_JOB_ID); InOrder inOrder = inOrder(authenticationService, ingestJobRepository, ingestJobMapper); inOrder.verify(ingestJobRepository).findById(INGEST_JOB_ID); inOrder.verifyNoMoreInteractions(); }