*/
public void testRemoveService() throws com.google.api.adwords.v200909.cm.ApiException,
RemoteException {
long oldUnitCount = serviceAccountantManager.getTotalUnitCount();
serviceAccountantManager.setAutoCreateAccountant(true);
campaignV200909Service.get(new CampaignSelector(null, null, null, new Paging(0, 100)));
assertTrue("Service was incorrectly accounted.",
oldUnitCount < serviceAccountantManager.getTotalUnitCount());
serviceAccountantManager.removeService(campaignV200909Service);
assertNull(serviceAccountantManager.getServiceAccountant(campaignV200909Service));
oldUnitCount = serviceAccountantManager.getTotalUnitCount();
serviceAccountantManager.setAutoCreateAccountant(false);
campaignV200909Service.get(new CampaignSelector(null, null, null, new Paging(0, 100)));
assertEquals("Service was incorrectly accounted.",
oldUnitCount, serviceAccountantManager.getTotalUnitCount());
}