public void testAuthorized() throws Exception
{
WicketTester tester = new WicketTester();
tester.getApplication().getSecuritySettings().setAuthorizationStrategy(
new RoleAuthorizationStrategy(new UserRolesAuthorizer("ADMIN")));
tester.startPage(new ITestPageSource()
{
private static final long serialVersionUID = 1L;
public Page<?> getTestPage()
{