@JsonIgnore
  public boolean isInlineWorkflow() {
    return initiator.getType().isInline();
  }
@Test
  public void testRoundTripSerde() throws Exception {
    for (String fileName :
        Arrays.asList(
            "sample-workflow-instance-created.json", "sample-workflow-instance-succeeded.json")) {
      WorkflowInstance expected =
          loadObject("fixtures/instances/" + fileName, WorkflowInstance.class);
      String ser1 = MAPPER.writeValueAsString(expected);
      WorkflowInstance actual =
          MAPPER.readValue(MAPPER.writeValueAsString(expected), WorkflowInstance.class);
      String ser2 = MAPPER.writeValueAsString(actual);
      assertEquals(expected, actual);
      assertEquals(ser1, ser2);
      assertFalse(actual.isInlineWorkflow());
    }
  }