### Question:
AAINetworkResources { public void connectNetworkCollectionInstanceGroupToNetworkCollection(InstanceGroup instanceGroup, Collection networkCollection) { AAIResourceUri networkCollectionUri = AAIUriFactory.createResourceUri(AAIFluentTypeBuilder.network().collection(networkCollection.getId())); AAIResourceUri netwrokCollectionInstanceGroupURI = AAIUriFactory.createResourceUri(AAIFluentTypeBuilder.network().instanceGroup(instanceGroup.getId())); injectionHelper.getAaiClient().connect(networkCollectionUri, netwrokCollectionInstanceGroupURI); }  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 connectNetworkCollectionInstanceGroupToNetworkCollectionTest() throws Exception { aaiNetworkResources.connectNetworkCollectionInstanceGroupToNetworkCollection(instanceGroup, collection); verify(MOCK_aaiResourcesClient, times(1)).connect( eq(AAIUriFactory.createResourceUri(AAIFluentTypeBuilder.network().collection(collection.getId()))), eq(AAIUriFactory .createResourceUri(AAIFluentTypeBuilder.network().instanceGroup(instanceGroup.getId())))); }