public void testWithoutAutolabel() throws Exception
{
WicketTester tester = new WicketTester();
tester.startPage(new PickUpLabelPage(null));
tester.dumpPage();
tester.assertContains("<label>label from markup without autolabel</label>");
assertEquals(
"label from markup without autolabel",
((FormComponent)tester.getComponentFromLastRenderedPage("form:inputWithoutAutolabel")).getLabel()
.getObject());