StatesWithActionsSynthesisMessage extends Message<ContingencyStatesActionsSynthesis> { @Override public String toJson() { return writeValueAsString(this); } StatesWithActionsSynthesisMessage(ContingencyStatesActionsSynthesis contingecyStatesActions); @Override String toJson(); @Override void toJson(JsonGenerator generator);  }
@Test public void testToJson() { ContingencyStatesActionsSynthesis contingecyStatesActions = new ContingencyStatesActionsSynthesis(); StatesWithActionsSynthesisMessage actionsSynthesisMessage = new StatesWithActionsSynthesisMessage( contingecyStatesActions); assertEquals("{\"body\":{\"contingencyMap\":{},\"workflowId\":null},\"type\":\"statesWithActionsSyntesis\"}", actionsSynthesisMessage.toJson()); }