"The report for {0,date,medium}, shows the temperature as {2,number,###.##} {3} and the weather to be {1}",
page.getLocale());
StringResourceModel model = new StringResourceModel("weather.detail", page, wsModel,
cal.getTime(), "${currentStatus}", new PropertyModel<Double>(wsModel,
"currentTemperature"), new PropertyModel<String>(wsModel, "units"));
String expected = format.format(new Object[] { cal.getTime(), "sunny", 25.7, "\u00B0C" });
assertEquals("Text should be as expected", expected, model.getString());
ws.setCurrentStatus("raining");
ws.setCurrentTemperature(11.568);
expected = format.format(new Object[] { cal.getTime(), "raining", 11.568, "\u00B0C" });
assertEquals("Text should be as expected", expected, model.getString());