instance.getNumberRegisteredServices() == 0);
assertTrue(instance.getAllRetainedServices().isEmpty());
AdWordsUser testUser1 = new AdWordsUser("test_data/test.properties");
AdWordsUser testUser2 = new AdWordsUser("test_data/test.properties");
CampaignServiceInterface campaignService1 =
testUser1.getService(AdWordsService.V200909.CAMPAIGN_SERVICE);
CampaignServiceInterface campaignService2 =
testUser2.getService(AdWordsService.V200909.CAMPAIGN_SERVICE);
campaignService1.get(new CampaignSelector());
campaignService2.get(new CampaignSelector());
assertEquals(2, instance.getAllRetainedServices().keySet().size());
instance.setRetainServices(true);
CampaignServiceInterface campaignService3 =
testUser1.getService(AdWordsService.V200909.CAMPAIGN_SERVICE);
CampaignServiceInterface campaignService4 =
testUser2.getService(AdWordsService.V200909.CAMPAIGN_SERVICE);
campaignService3.get(new CampaignSelector());
campaignService4.get(new CampaignSelector());
assertEquals(4, instance.getNumberRegisteredServices());
assertEquals(2, instance.getNumberRetainedServices());
Map<AdWordsUser, Stub[]> allRetainedServices = instance.getAllRetainedServices();