Assert.assertEquals(action.getMessageType(), MessageType.JSON.name());
Assert.assertEquals(action.getValidator(), validator);
Assert.assertEquals(action.getValidationContexts().size(), 2L);
ScriptValidationContext validationContext = (ScriptValidationContext) action.getValidationContexts().get(0);
Assert.assertEquals(validationContext.getScriptType(), ScriptTypes.GROOVY);
Assert.assertEquals(validationContext.getValidationScript(), "assert true");
Assert.assertNull(validationContext.getValidationScriptResourcePath());
ControlMessageValidationContext headerValidationContext = (ControlMessageValidationContext) action.getValidationContexts().get(1);
Assert.assertTrue(headerValidationContext.getMessageBuilder() instanceof PayloadTemplateMessageBuilder);
Assert.assertNull(((PayloadTemplateMessageBuilder)headerValidationContext.getMessageBuilder()).getPayloadData());