WorkStatusMessage extends Message<WorkSynthesis> { @Override public String toJson() { return writeValueAsString(this); } WorkStatusMessage(WorkSynthesis status); @Override String toJson();  }
@Test public void testToJson() { WorkSynthesis status = new WorkSynthesis(); WorkStatusMessage message = new WorkStatusMessage(status); assertEquals("{\"body\":{\"workflowId\":null,\"status\":null},\"type\":\"workStatus\"}", message.toJson()); }