@Test
public void instantiateWithByte() {

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