public void test_Render_Contribution()
{
IMarkupWriter writer = newWriter();
IRequestCycle cycle = newCycle();
JSONObject json = new JSONObject();
FormComponentContributorContext context = newMock(FormComponentContributorContext.class);
IFormComponent field = newField("My Field", "myfield");
Locale locale = Locale.GERMAN;
DecimalFormatSymbols symbols = new DecimalFormatSymbols(locale);
expect(context.getLocale()).andReturn(locale).anyTimes();
expect(context.getProfile()).andReturn(json);
trainFormatMessage(context, null, ValidationStrings.VALUE_TOO_LARGE,
new Object[] {
"My Field",
new Double(20).toString()