### Question:
AAIVolumeGroupResources { public void connectVolumeGroupToVnf(GenericVnf genericVnf, VolumeGroup volumeGroup, CloudRegion cloudRegion) { AAIResourceUri uriGenericVnf = AAIUriFactory.createResourceUri(AAIFluentTypeBuilder.network().genericVnf(genericVnf.getVnfId())); AAIResourceUri uriVolumeGroup = AAIUriFactory.createResourceUri(AAIFluentTypeBuilder.cloudInfrastructure() .cloudRegion(cloudRegion.getCloudOwner(), cloudRegion.getLcpCloudRegionId()) .volumeGroup(volumeGroup.getVolumeGroupId())); injectionHelper.getAaiClient().connect(uriGenericVnf, uriVolumeGroup); }  void createVolumeGroup(VolumeGroup volumeGroup, CloudRegion cloudRegion); void updateOrchestrationStatusVolumeGroup(VolumeGroup volumeGroup, CloudRegion cloudRegion,
            OrchestrationStatus orchestrationStatus); void connectVolumeGroupToVnf(GenericVnf genericVnf, VolumeGroup volumeGroup, CloudRegion cloudRegion); void connectVolumeGroupToTenant(VolumeGroup volumeGroup, CloudRegion cloudRegion); void deleteVolumeGroup(VolumeGroup volumeGroup, CloudRegion cloudRegion); void updateHeatStackIdVolumeGroup(VolumeGroup volumeGroup, CloudRegion cloudRegion); boolean checkNameInUse(VolumeGroup volumeGroup);  }### Answer:
@Test public void connectVolumeGroupToVnfTest() throws Exception { volumeGroup.setOrchestrationStatus(OrchestrationStatus.ASSIGNED); doNothing().when(MOCK_aaiResourcesClient).connect(isA(AAIResourceUri.class), isA(AAIResourceUri.class)); aaiVolumeGroupResources.connectVolumeGroupToTenant(volumeGroup, cloudRegion); verify(MOCK_aaiResourcesClient, times(1)).connect(any(AAIResourceUri.class), any(AAIResourceUri.class)); }