user = (User) userMgr.getUser(username);
user = userMgr.getUser(username);
    public void setUp() throws Exception {        super.setUp();        // populate the userForm and place into session        String username = login.getString("username");        ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(        		    getSession().getServletContext());        UserManager userMgr = (UserManager) ctx.getBean("userManager");        user = (User) userMgr.getUser(username);        getSession().setAttribute(Constants.USER_KEY, user);    }