@Test
public void getStateVariableWithDefaultValueWorks() {

  WorkflowInstance instance = new WorkflowInstance.Builder().build();
  assertThat(instance.getStateVariable("key", "defaultValue"), is("defaultValue"));
}