@Test
public void mutableStateParamSetsMutableFlag() {

  Map<String, WorkflowStateMethod> methods = scanner.getStateMethods(MutableParamWorkflow.class);
  assertThat(methods.keySet(), hasItemsOf(asList("start", "end")));
  assertThat(methods.get("end").params[0], stateParam("paramKey", String.class, false, true));
}