### Question:
AAINetworkResources { public Optional<org.onap.aai.domain.yang.L3Network> queryNetworkById(L3Network l3network) { AAIResourceUri uri = AAIUriFactory .createResourceUri(AAIFluentTypeBuilder.network().l3Network(l3network.getNetworkId())).depth(Depth.ALL); AAIResultWrapper aaiWrapper = injectionHelper.getAaiClient().get(uri); return aaiWrapper.asBean(org.onap.aai.domain.yang.L3Network.class); }  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 queryNetworkByIdTest() 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)); Optional<org.onap.aai.domain.yang.L3Network> l3NetworkOpt = aaiNetworkResources.queryNetworkById(network); org.onap.aai.domain.yang.L3Network l3Network = l3NetworkOpt.isPresent() ? l3NetworkOpt.get() : null; verify(MOCK_aaiResourcesClient, times(1)).get(isA(AAIResourceUri.class)); assertNotNull(l3Network); assertEquals("0384d743-f69b-4cc8-9aa8-c3ae66662c44", l3Network.getNetworkId()); assertEquals("Dev_Bindings_1802_020118", l3Network.getNetworkName()); }