@Test
public void shouldReturnTriesAndExecId() {

  final StateData stateData = StateData.newBuilder().executionId("exec-1").build();
  assertThat(stateInfo(RunState.create(WORKFLOW_INSTANCE, SUBMITTED, stateData)),
      is(format("tries:0 execId:%s", stateData.executionId())));
  assertThat(stateInfo(RunState.create(WORKFLOW_INSTANCE, RUNNING, stateData)),
      is(format("tries:0 execId:%s", stateData.executionId())));
  assertThat(stateInfo(RunState.create(WORKFLOW_INSTANCE, FAILED, stateData)),
      is(format("tries:0 execId:%s", stateData.executionId())));
}