### Question:
NssmfManagerServiceImpl implements NssmfManagerService { @Override public ResponseEntity queryNSSISelectionCapability(NssmfAdapterNBIRequest nbiRequest) { EsrInfo esrInfo = nbiRequest.getEsrInfo(); try { return buildResponse(buildNssmfManager(esrInfo, ActionType.QUERY_NSSI_SELECTION_CAPABILITY, null) .queryNSSISelectionCapability(nbiRequest)); } 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 queryNSSISelectionCapability() throws Exception { NssmfAdapterNBIRequest nbiRequest = createNbiRequest(); ResponseEntity res = nssiManagerService.queryNSSISelectionCapability(nbiRequest); assertNotNull(res); assertNotNull(res.getBody()); Map allRes = unMarshal(res.getBody().toString(), Map.class); assertEquals(allRes.get("selection"), "NSMF"); System.out.println(res); nbiRequest.getEsrInfo().setVendor(NssmfAdapterConsts.ONAP_INTERNAL_TAG); res = nssiManagerService.queryNSSISelectionCapability(nbiRequest); assertNotNull(res); assertNotNull(res.getBody()); allRes = unMarshal(res.getBody().toString(), Map.class); assertEquals(allRes.get("selection"), "NSSMF"); System.out.println(res); nbiRequest.getEsrInfo().setNetworkType(NetworkType.ACCESS); res = nssiManagerService.queryNSSISelectionCapability(nbiRequest); assertNotNull(res); assertNotNull(res.getBody()); allRes = unMarshal(res.getBody().toString(), Map.class); assertEquals(allRes.get("selection"), "NSSMF"); System.out.println(res); }