StatesWithSecurityRulesResultSynthesisMessage extends Message<IndexSecurityRulesResultsSynthesis> { @Override public String toJson() { return writeValueAsString(this); } StatesWithSecurityRulesResultSynthesisMessage(
            IndexSecurityRulesResultsSynthesis contingencyIndexesResultsSynthesis); @Override String toJson(); @Override void toJson(JsonGenerator generator);  }
@Test public void testToJson() { IndexSecurityRulesResultsSynthesis contingencyIndexesResultsSynthesis = new IndexSecurityRulesResultsSynthesis( "id"); StatesWithSecurityRulesResultSynthesisMessage message = new StatesWithSecurityRulesResultSynthesisMessage( contingencyIndexesResultsSynthesis); assertEquals( "{\"body\":{\"workflowId\":\"id\",\"contingencySecurityRulesMap\":{}},\"type\":\"statesWithSecurityRulesResultSyntesis\"}", message.toJson()); }