.getObject());
tester.assertContains("propertiesDefaultLabel DE");
Session.get().setLocale(Locale.FRENCH); // change locale to see whether it picks it up
Page page = tester.getLastRenderedPage();
page.detach(); // make sure everything is detached after we just talked to that label model
tester.startPage(page); // just re-render the same page instance with the new locale
assertEquals(
"propertiesDefaultLabel FR",
((FormComponent)tester.getComponentFromLastRenderedPage("form:inputWithDefaultLabel")).getLabel()
.getObject());