public class UsageTriggerTest extends BasicRequestTester {
@Test
public void testListingUsageTrigger() throws Exception {
setExpectedServerAnswer("usagetriggertestanswer.xml");
UsageTriggerList usageTriggers = client.getAccount().getUsageTriggers();
Iterator<UsageTrigger> usageRecordIterator = usageTriggers.iterator();
UsageTrigger current;
current = usageRecordIterator.next();
assertEquals(current.getCallbackMethod(), "POST");
assertEquals(current.getCallbackUrl(), "http://www.google.com");