StableContingenciesMessage extends Message<StableContingenciesSynthesis> { @Override public String toJson() { return writeValueAsString(this); } StableContingenciesMessage(StableContingenciesSynthesis stableContingencies); @Override String toJson();  }
@Test public void testToJson() { StableContingenciesSynthesis stableContingencies = new StableContingenciesSynthesis(); StableContingenciesMessage contingenciesMessage = new StableContingenciesMessage(stableContingencies); assertEquals("{\"body\":{\"workflowId\":null,\"contingencies\":null},\"type\":\"stableContingencies\"}", contingenciesMessage.toJson()); }