### Question:
SDNCVnfResources { public String queryVnf(GenericVnf vnf) throws MapperException, BadResponseException { String queryPath = vnf.getSelflink(); return sdncClient.get(queryPath); }  GenericResourceApiVnfOperationInformation assignVnf(GenericVnf vnf, ServiceInstance serviceInstance,
            Customer customer, CloudRegion cloudRegion, RequestContext requestContext, boolean homing,
            URI callbackURI); GenericResourceApiVnfOperationInformation activateVnf(GenericVnf vnf, ServiceInstance serviceInstance,
            Customer customer, CloudRegion cloudRegion, RequestContext requestContext, URI callbackURI); GenericResourceApiVnfOperationInformation deactivateVnf(GenericVnf vnf, ServiceInstance serviceInstance,
            Customer customer, CloudRegion cloudRegion, RequestContext requestContext, URI callbackURI); GenericResourceApiVnfOperationInformation unassignVnf(GenericVnf vnf, ServiceInstance serviceInstance,
            Customer customer, CloudRegion cloudRegion, RequestContext requestContext, URI callbackURI); GenericResourceApiVnfOperationInformation deleteVnf(GenericVnf vnf, ServiceInstance serviceInstance,
            Customer customer, CloudRegion cloudRegion, RequestContext requestContext, URI callbackURI); GenericResourceApiVnfOperationInformation changeModelVnf(GenericVnf vnf, ServiceInstance serviceInstance,
            Customer customer, CloudRegion cloudRegion, RequestContext requestContext, URI callbackURI); String queryVnf(GenericVnf vnf);  }### Answer:
@Test public void queryVnfTest() throws MapperException, BadResponseException { doReturn("test").when(MOCK_sdncClient).get(isA(String.class)); genericVnf.setSelflink("testSelflink"); sdncVnfResources.queryVnf(genericVnf); verify(MOCK_sdncClient, times(1)).get(isA(String.class)); }
@Test public void queryVnfWithResourcePrefixTest() throws MapperException, BadResponseException { doReturn("test").when(MOCK_sdncClient).get(isA(String.class)); genericVnf.setSelflink("restconf/test:testSelflink"); sdncVnfResources.queryVnf(genericVnf); verify(MOCK_sdncClient, times(1)).get(isA(String.class)); }