### Question:
NssmfManagerServiceImpl implements NssmfManagerService { @Override public ResponseEntity queryJobStatus(NssmfAdapterNBIRequest jobReq, String jobId) { try { return buildResponse(buildNssmfManager(jobReq, ActionType.QUERY_JOB_STATUS).queryJobStatus(jobReq, jobId)); } catch (ApplicationException e) { return e.buildErrorResponse(); } }  @Override ResponseEntity allocateNssi(NssmfAdapterNBIRequest request); @Override ResponseEntity deAllocateNssi(NssmfAdapterNBIRequest request, String sliceProfileId); @Override ResponseEntity activateNssi(NssmfAdapterNBIRequest request, String snssai); @Override ResponseEntity deActivateNssi(NssmfAdapterNBIRequest request, String snssai); @Override ResponseEntity queryJobStatus(NssmfAdapterNBIRequest jobReq, String jobId); @Override ResponseEntity queryNSSISelectionCapability(NssmfAdapterNBIRequest nbiRequest); @Override ResponseEntity querySubnetCapability(NssmfAdapterNBIRequest nbiRequest);  }### Answer:
@Test public void queryJobStatus() throws Exception { NssmfInfo nssmf = new NssmfInfo(); nssmf.setUserName("nssmf-user"); nssmf.setPassword("nssmf-pass"); nssmf.setPort("8080"); nssmf.setIpAddress("127.0.0.1"); JobStatusResponse jobStatusResponse = new JobStatusResponse(); ResponseDescriptor descriptor = new ResponseDescriptor(); descriptor.setResponseId("7512eb3feb5249eca5ddd742fedddd39"); descriptor.setProgress(20); descriptor.setStatusDescription("Initiating VNF Instance"); descriptor.setStatus("processing"); jobStatusResponse.setResponseDescriptor(descriptor); TokenResponse token = new TokenResponse(); token.setAccessToken("7512eb3feb5249eca5ddd742fedddd39"); token.setExpires(1800); postStream = new ByteArrayInputStream(marshal(jobStatusResponse).getBytes(UTF_8)); tokenStream = new ByteArrayInputStream(marshal(token).getBytes(UTF_8)); ResourceOperationStatus operationStatus = new ResourceOperationStatus(); operationStatus.setOperationId("4b45d919816ccaa2b762df5120f72067"); operationStatus.setResourceTemplateUUID("8ee5926d-720b-4bb2-86f9-d20e921c143b"); operationStatus.setServiceId("NSI-M-001-HDBNJ-NSMF-01-A-ZX"); NssmfAdapterNBIRequest nbiRequest = createNbiRequest(); nbiRequest.setResponseId("7512eb3feb5249eca5ddd742fedddd39"); Optional<ResourceOperationStatus> optional = Optional.of(operationStatus); doAnswer(invocation -> optional).when(repository).findOne(any()); createCommonMock(200, nssmf); ResponseEntity res = nssiManagerService.queryJobStatus(nbiRequest, "4b45d919816ccaa2b762df5120f72067"); assertNotNull(res); assertNotNull(res.getBody()); JobStatusResponse allRes = unMarshal(res.getBody().toString(), JobStatusResponse.class); assertEquals(allRes.getResponseDescriptor().getProgress(), 20); assertEquals(allRes.getResponseDescriptor().getStatus(), "processing"); assertEquals(allRes.getResponseDescriptor().getResponseId(), "7512eb3feb5249eca5ddd742fedddd39"); System.out.println(res); }