@Test
public void isAllowedNextActionReturnsTrueForRetry() {

  WorkflowInstance instance = new WorkflowInstance.Builder().setState("begin").build();
  NextAction nextAction = retryAfter(now().plusMinutes(1), "reason");
  assertThat(workflow.isAllowedNextAction(instance, nextAction), is(true));
}