WcaContingenciesMessage extends Message<WcaContingenciesSynthesis> { @Override public String toJson() { return writeValueAsString(this); } WcaContingenciesMessage(WcaContingenciesSynthesis wcaContingencies); @Override String toJson();  }
@Test public void testToJson() { Map<String, WCACluster> arg1 = new HashMap<String, WCACluster>(); WcaContingenciesSynthesis wcaContingencies = new WcaContingenciesSynthesis("id", arg1); WcaContingenciesMessage contingenciesMessage = new WcaContingenciesMessage(wcaContingencies); assertEquals("{\"body\":{\"workflowId\":\"id\",\"contingenciesCluster\":{}},\"type\":\"wcaContingencies\"}", contingenciesMessage.toJson()); }