assertNotNull(label);
attr = label.getMarkupAttributes();
assertNotNull(attr);
assertEquals("label", attr.getString("wicket:id"));
Border border = (Border)page.get("myBorder");
assertNotNull(border);
attr = border.getMarkupAttributes();
assertNotNull(attr);
assertEquals("myBorder", attr.getString("wicket:id"));
border = (Border)page.get("myBorder2");
assertNotNull(border);
attr = border.getMarkupAttributes();
assertNotNull(attr);
assertEquals("myBorder2", attr.getString("wicket:id"));
// do the same test twice. Igor reported a problem with that, so we have to test it.
border = (Border)page.get("myBorder2");
assertNotNull(border);
attr = border.getMarkupAttributes();
assertNotNull(attr);
assertEquals("myBorder2", attr.getString("wicket:id"));
WebMarkupContainer container = (WebMarkupContainer)page.get("test");
assertNotNull(container);