@Test
public void instantiateNullFlagCausesParameterObjectToInstantiate() {

  Map<String, WorkflowStateMethod> methods = scanner.getStateMethods(InitiateParameterWorkflow.class);
  assertThat(methods.keySet(), hasItemsOf(asList("start", "end")));
  assertNotNull(methods.get("end").params[0].nullValue);
  assertThat(methods.get("end").params[0], stateParam("paramKey", ParamObj.class, false, false));
  StateParameter longParam = methods.get("end").params[1];
  assertThat(longParam, stateParam("paramKey2", long.class, true, false));
  assertEquals(0L, longParam.nullValue);
}