@Test
public void shouldReturnTries() {

  assertThat(stateInfo(RunState.fresh(WORKFLOW_INSTANCE)), is("tries:0"));
  assertThat(stateInfo(RunState.create(WORKFLOW_INSTANCE, PREPARE)),
      is("tries:0"));
  assertThat(stateInfo(RunState.create(WORKFLOW_INSTANCE, ERROR)),
      is("tries:0"));
  assertThat(stateInfo(RunState.create(WORKFLOW_INSTANCE, DONE)),
      is("tries:0"));
}