context.putBean("serviceManager", serviceManager);
userManager = new UserManagerStub();
userManager.createUser("test");
userManager.setUserCredentials("test", "password", "password");
userManager.addPermissionToUser("test", new WicketPermission("USER"));
userManager.addPermissionToUser("test", new WicketPermission("INDEX"));
userManager.createUser("user");
userManager.setUserCredentials("user", "password", "password");
userManager.addPermissionToUser("user", new WicketPermission("INDEX"));
userManager.createUser("admin");
userManager.setUserCredentials("admin", "password", "password");
userManager.addPermissionToUser("admin", new RootPermission());
context.putBean("userManager", userManager);