@@ -0,0 +1,1435 @@
+/*-%0A * -%5C-%5C-%0A * Spotify Styx Common%0A * --%0A * Copyright (C) 2016 - 2018 Spotify AB%0A * --%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A * %0A *      http://www.apache.org/licenses/LICENSE-2.0%0A * %0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A * -/-/-%0A */%0A%0Apackage com.spotify.styx.util;%0A%0Aimport static org.hamcrest.Matchers.is;%0Aimport static org.junit.Assert.assertThat;%0A%0Aimport com.spotify.styx.model.Event;%0Aimport com.spotify.styx.model.TriggerParameters;%0Aimport com.spotify.styx.state.Trigger;%0Aimport com.spotify.styx.testdata.TestData;%0Aimport org.junit.Test;%0A%0Apublic class EventUtilTest %7B%0A%0A  private static final TriggerParameters TRIGGER_PARAMETERS = TriggerParameters.builder()%0A      .env(%22FOO%22, %22foo%22)%0A      .build();%0A%0A  @Test%0A  public void infoTriggerExecution() %7B%0A    assertThat(%0A        EventUtil.info(Event.triggerExecution(TestData.WORKFLOW_INSTANCE, Trigger.adhoc(%22foobar%22), TRIGGER_PARAMETERS)),%0A        is(%22Trigger id: foobar, Parameters: %7B%5C%22env%5C%22:%7B%5C%22FOO%5C%22:%5C%22foo%5C%22%7D%7D%22));%0A  %7D%0A%0A  // TODO: test the rest of EventUtil%0A%7D%0A

add test