WcaRunningMessage extends Message<RunningSynthesis> { @Override public String toJson() { return writeValueAsString(this); } WcaRunningMessage(RunningSynthesis wcaRunning); @Override String toJson();  }
@Test public void testToJson() { RunningSynthesis wcaRunning = new RunningSynthesis(); WcaRunningMessage message = new WcaRunningMessage(wcaRunning); assertEquals("{\"body\":{\"workflowId\":null,\"running\":false},\"type\":\"wcaRunning\"}", message.toJson()); }