@Test
public void convertWithEmptyActionsWorks() {

  WorkflowInstance i = new WorkflowInstance.Builder().setId(1).setStatus(inProgress).setType("dummy")
      .setBusinessKey("businessKey").setExternalId("externalId").setState("cState").setStateText("cState desc")
      .setNextActivation(now()).build();
  ListWorkflowInstanceResponse resp = converter.convert(i,
      EnumSet.of(WorkflowInstanceInclude.ACTIONS, WorkflowInstanceInclude.ACTION_STATE_VARIABLES));
  assertThat(resp.id, is(i.id));
  assertThat(resp.status, is(i.status.name()));
  assertThat(resp.stateVariables, is((Map<String, Object>) null));
  assertThat(resp.type, is(i.type));
  assertThat(resp.businessKey, is(i.businessKey));
  assertThat(resp.externalId, is(i.externalId));
  assertThat(resp.state, is(i.state));
  assertThat(resp.stateText, is(i.stateText));
  assertThat(resp.nextActivation, is(i.nextActivation));
  assertThat(resp.actions, is(emptyList()));
}