@Test
public void testAddTrigger() throws Exception {

  final Trigger t1 = createTrigger("testProj1", "testFlow1", "source1");
  final Trigger t2 = createTrigger("testProj2", "testFlow2", "source2");
  this.loader.addTrigger(t1);
  List<Trigger> ts = this.loader.loadTriggers();
  assertTrue(ts.size() == 1);
  final Trigger t3 = ts.get(0);
  assertTrue(t3.getSource().equals("source1"));
  this.loader.addTrigger(t2);
  ts = this.loader.loadTriggers();
  assertTrue(ts.size() == 2);
  for (final Trigger t : ts) {
    if (t.getTriggerId() == t2.getTriggerId()) {
      t.getSource().equals(t2.getSource());
    }
  }
}