StatesWithIndexesSynthesisMessage extends Message<ContingencyStatesIndexesSynthesis> { @Override public String toJson() { return writeValueAsString(this); } StatesWithIndexesSynthesisMessage(ContingencyStatesIndexesSynthesis contingencyStatesIndexesSynthesis); @Override String toJson(); @Override void toJson(JsonGenerator generator);  }
@Test public void testToJson() { ContingencyStatesIndexesSynthesis contingencyStatesIndexesSynthesis = new ContingencyStatesIndexesSynthesis(); StatesWithIndexesSynthesisMessage indexesSynthesisMessage = new StatesWithIndexesSynthesisMessage( contingencyStatesIndexesSynthesis); assertEquals("{\"body\":{\"contingencyMap\":{},\"workflowId\":null},\"type\":\"statesWithIndexesSyntesis\"}", indexesSynthesisMessage.toJson()); }