/** clean */
 public void clean(List<AdGroupValues> adGroupValues) {
   try {
     AdGroupOperation removeAdGroupOperation =
         AdGroupServiceSample.createSampleRemoveRequest(accountId, adGroupValues);
     AdGroupServiceSample.set(removeAdGroupOperation);
   } catch (Exception e) {
     fail();
   }
 }
 /** Sample TestCase of main method for AdGroupServiceSample. */
 @Test
 public void testMain() throws Exception {
   // Run
   try {
     AdGroupServiceSample.main(null);
   } catch (Exception e) {
     fail();
   }
 }
  /** Sample TestCase of set method for AdGroupServiceSample. */
  @Test
  public void testSet() throws Exception {
    // =================================================================
    // AdGroupService ADD
    // =================================================================
    List<AdGroupValues> addAdGroupValues = null;
    try {
      AdGroupOperation addAdGroupOperation =
          AdGroupServiceSample.createSampleAddRequest(
              accountId, campaignId, appCampaignId, biddingStrategyId);
      addAdGroupValues = AdGroupServiceSample.add(addAdGroupOperation);
    } catch (Exception e) {
      fail();
    }

    // =================================================================
    // AdGroupService SET
    // =================================================================
    // Set Operation
    AdGroupOperation setAdGroupOperation =
        AdGroupServiceSample.createSampleSetRequest(accountId, biddingStrategyId, addAdGroupValues);

    // Run
    List<AdGroupValues> setAdGroupValues = null;
    try {
      setAdGroupValues = AdGroupServiceSample.set(setAdGroupOperation);
    } catch (Exception e) {
      fail();
    }

    // Assert
    for (AdGroupValues adGroupValues : setAdGroupValues) {
      assertThat(adGroupValues.isOperationSucceeded(), is(true));
      assertThat(adGroupValues.getAdGroup().getAccountId(), is(notNullValue()));
    }

    clean(setAdGroupValues);
  }