@Test
public void getTypedStateVariableFailsWithoutObjectMapper() {

  assertThrows(IllegalStateException.class, () -> {
    WorkflowInstance instance = new WorkflowInstance.Builder().build();
    instance.getStateVariable("key", Long.class);
  });
}