}
public void test_Fail_Custom_Message()
{
IFormComponent field = newField("My Field");
ValidationMessages messages = newMessages(
"custom",
ValidationStrings.VALUE_TOO_SMALL,
new Object[]
{ "My Field", String.valueOf(new Double(10).doubleValue()) },
"custom message");
expect(messages.getLocale()).andReturn(Locale.getDefault()).atLeastOnce();
replay();
try
{