protected ValidationMessages newMessages(String messageOverride, String messageKey,
Object[] parameters, String result)
{
MockControl control = newControl(ValidationMessages.class);
ValidationMessages messages = (ValidationMessages) control.getMock();
trainFormatMessage(control, messages, messageOverride, messageKey, parameters, result);
return messages;
}