@Test
public void instantiateWithDouble() {

  Map<String, WorkflowStateMethod> methods = scanner.getStateMethods(DoubleObjectWorkflow.class);
  assertThat(methods.keySet(), hasItemsOf(asList("start", "end")));
  assertNotNull(methods.get("end").params[0].nullValue);
  assertThat(methods.get("end").params[0], stateParam("paramPrimitive", double.class, true, false));
  StateParameter longParam = methods.get("end").params[1];
  assertThat(longParam, stateParam("paramBoxed", Double.class, true, false));
  assertEquals(Double.valueOf(0), longParam.nullValue);
}