}
public void test_Fail()
{
IFormComponent field = newField("My Field");
ValidationMessages messages = newMessages(
null,
ValidationStrings.VALUE_TOO_LARGE,
new Object[]
{ "My Field", new Double(10).toString() },
"Exception!");
expect(messages.getLocale()).andReturn(Locale.getDefault()).atLeastOnce();
replay();
try
{