@Test
public void testUpdateTrigger() throws Exception {

  final Trigger t1 = createTrigger("testProj1", "testFlow1", "source1");
  t1.setResetOnExpire(true);
  this.loader.addTrigger(t1);
  List<Trigger> ts = this.loader.loadTriggers();
  assertTrue(ts.get(0).isResetOnExpire() == true);
  t1.setResetOnExpire(false);
  this.loader.updateTrigger(t1);
  ts = this.loader.loadTriggers();
  assertTrue(ts.get(0).isResetOnExpire() == false);
}