EventUtil { public static String info(Event event) { return event.accept(EventInfoVisitor.INSTANCE); } private  EventUtil(); static String name(Event event); static String info(Event event);  }
@Test public void infoTriggerExecution() { assertThat( EventUtil.info(Event.triggerExecution(TestData.WORKFLOW_INSTANCE, Trigger.adhoc("foobar"), TRIGGER_PARAMETERS)), is("Trigger id: foobar, Parameters: {\"env\":{\"BAR\":\"bar\",\"FOO\":\"foo\"}}")); }