### Question:
AAIInstanceGroupResources { public boolean exists(InstanceGroup instanceGroup) { AAIResourceUri instanceGroupUri = AAIUriFactory.createResourceUri(AAIFluentTypeBuilder.network().instanceGroup(instanceGroup.getId())); return injectionHelper.getAaiClient().exists(instanceGroupUri); }  void createInstanceGroup(InstanceGroup instanceGroup); void deleteInstanceGroup(InstanceGroup instanceGroup); void connectInstanceGroupToVnf(InstanceGroup instanceGroup, GenericVnf vnf); void connectInstanceGroupToVnf(InstanceGroup instanceGroup, GenericVnf vnf, AAIEdgeLabel aaiLabel); boolean exists(InstanceGroup instanceGroup); void createInstanceGroupandConnectServiceInstance(InstanceGroup instanceGroup,
            ServiceInstance serviceInstance); boolean checkInstanceGroupNameInUse(String instanceGroupName);  }### Answer:
@Test public void existsTest() throws Exception { aaiInstanceGroupResources.exists(instanceGroup); verify(MOCK_aaiResourcesClient, times(1)).exists(eq( AAIUriFactory.createResourceUri(AAIFluentTypeBuilder.network().instanceGroup(instanceGroup.getId())))); }