### Question:
NssmfManagerServiceImpl implements NssmfManagerService { @Override public ResponseEntity deActivateNssi(NssmfAdapterNBIRequest request, String snssai) { try { return buildResponse(buildNssmfManager(request, ActionType.DEACTIVATE).deActivateNssi(request, snssai)); } 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 deActivateNssi() throws Exception { NssmfInfo nssmf = new NssmfInfo(); nssmf.setUserName("nssmf-user"); nssmf.setPassword("nssmf-pass"); nssmf.setPort("8080"); nssmf.setIpAddress("127.0.0.1"); NssiResponse nssiRes = new NssiResponse(); nssiRes.setJobId("4b45d919816ccaa2b762df5120f72067"); TokenResponse token = new TokenResponse(); token.setAccessToken("7512eb3feb5249eca5ddd742fedddd39"); token.setExpires(1800); postStream = new ByteArrayInputStream(marshal(nssiRes).getBytes(UTF_8)); tokenStream = new ByteArrayInputStream(marshal(token).getBytes(UTF_8)); ActDeActNssi act = new ActDeActNssi(); act.setNsiId("NSI-M-001-HDBNJ-NSMF-01-A-ZX"); act.setNssiId("NSSI-C-001-HDBNJ-NSSMF-01-A-ZX"); NssmfAdapterNBIRequest nbiRequest = createNbiRequest(); nbiRequest.setActDeActNssi(act); createCommonMock(200, nssmf); ResponseEntity res = nssiManagerService.deActivateNssi(nbiRequest, "001-100001"); assertNotNull(res); assertNotNull(res.getBody()); NssiResponse allRes = unMarshal(res.getBody().toString(), NssiResponse.class); assertEquals(allRes.getJobId(), "4b45d919816ccaa2b762df5120f72067"); }