}
public void testLabelWithMessage() throws Exception
{
WicketTester tester = new WicketTester();
tester.startPage(LabelWithMessagePage.class);
tester.assertContains("<label wicket:for=\"textfield\" for=\"textfield2\"><wicket:message key=\"foo\">my test text</wicket:message></label>");
}
public static class LabelWithNestedComponentsPage extends WebPage
{