### Question:
AAINetworkResources { public AAIResultWrapper queryNetworkWrapperById(L3Network l3network) { AAIResourceUri uri = AAIUriFactory .createResourceUri(AAIFluentTypeBuilder.network().l3Network(l3network.getNetworkId())).depth(Depth.ALL); return injectionHelper.getAaiClient().get(uri); }  void updateNetwork(L3Network network); void updateSubnet(L3Network network, Subnet subnet); void createNetworkConnectToServiceInstance(L3Network network, ServiceInstance serviceInstance); void createLineOfBusinessAndConnectNetwork(LineOfBusiness lineOfBusiness, L3Network network); void createPlatformAndConnectNetwork(Platform platform, L3Network network); void deleteNetwork(L3Network network); Optional<VpnBinding> getVpnBinding(AAIResourceUri netBindingUri); Optional<NetworkPolicy> getNetworkPolicy(AAIBaseResourceUri netPolicyUri); Optional<NetworkPolicies> getNetworkPolicies(AAIBaseResourceUri netPoliciesUri); Optional<org.onap.aai.domain.yang.Subnet> getSubnet(AAIResourceUri subnetUri); Optional<RouteTableReference> getRouteTable(AAIResourceUri rTableUri); Optional<org.onap.aai.domain.yang.L3Network> queryNetworkById(L3Network l3network); AAIResultWrapper queryNetworkWrapperById(L3Network l3network); void createNetworkInstanceGroup(InstanceGroup instanceGroup); void createNetworkCollection(Collection networkCollection); void connectNetworkToTenant(L3Network l3network, CloudRegion cloudRegion); void connectNetworkToCloudRegion(L3Network l3network, CloudRegion cloudRegion); void connectNetworkToNetworkCollectionInstanceGroup(L3Network l3network, InstanceGroup instanceGroup); void connectNetworkToNetworkCollectionServiceInstance(L3Network l3network,
            ServiceInstance networkCollectionServiceInstance); void connectNetworkCollectionInstanceGroupToNetworkCollection(InstanceGroup instanceGroup,
            Collection networkCollection); void connectInstanceGroupToCloudRegion(InstanceGroup instanceGroup, CloudRegion cloudRegion); void connectNetworkCollectionToServiceInstance(Collection networkCollection,
            ServiceInstance networkCollectionServiceInstance); void deleteCollection(Collection collection); void deleteNetworkInstanceGroup(InstanceGroup instanceGroup); void createNetworkPolicy(org.onap.so.bpmn.servicedecomposition.bbobjects.NetworkPolicy networkPolicy); void deleteNetworkPolicy(String networkPolicyId); boolean checkNetworkNameInUse(String networkName);  }### Answer:
@Test public void queryNetworkWrapperByIdTest() throws Exception { final String content = new String(Files.readAllBytes(Paths.get(JSON_FILE_LOCATION + "aaiQueryAAIResponse-Wrapper.json"))); AAIResultWrapper aaiResultWrapper = new AAIResultWrapper(content); L3Network network = new L3Network(); network.setNetworkId("0384d743-f69b-4cc8-9aa8-c3ae66662c44"); network.setNetworkName("Dev_Bindings_1802_020118"); network.setOrchestrationStatus(OrchestrationStatus.CREATED); doReturn(aaiResultWrapper).when(MOCK_aaiResourcesClient).get(isA(AAIResourceUri.class)); AAIResultWrapper result = aaiNetworkResources.queryNetworkWrapperById(network); verify(MOCK_aaiResourcesClient, times(1)).get(isA(AAIResourceUri.class)); assertEquals(aaiResultWrapper.getJson(), result.getJson()); assertNotNull(result); Optional<Relationships> resultNetworkRelationships = result.getRelationships(); assertTrue(resultNetworkRelationships.isPresent()); Optional<org.onap.aai.domain.yang.L3Network> aaiL3Network = result.asBean(org.onap.aai.domain.yang.L3Network.class); assertEquals(network.getNetworkId(), aaiL3Network.get().getNetworkId()); assertEquals(network.getNetworkName(), aaiL3Network.get().getNetworkName()); }