@Test
public void getMaxSubsequentStateExecutionsReturnsGivenDefaultValueWhenNotDefinedForState() {

  int executionsDefault = 200;
  WorkflowSettings s = new WorkflowSettings.Builder().setMaxSubsequentStateExecutions(executionsDefault).build();
  assertThat(s.getMaxSubsequentStateExecutions(TestWorkflow.State.begin), is(equalTo(executionsDefault)));
}