user.setWebsite("http://raibledesigns.com");
user.setPasswordHint("Password is one with you.");
bean.setUser(user);
// start SMTP Server
Wiser wiser = new Wiser();
wiser.setPort(getSmtpPort());
wiser.start();
assertEquals("mainMenu", bean.save());
assertFalse(bean.hasErrors());
// verify an account information e-mail was sent
wiser.stop();
assertTrue(wiser.getMessages().size() == 1);
// verify that success messages are in the session
assertNotNull(bean.getSession().getAttribute(Constants.REGISTERED));
SecurityContextHolder.getContext().setAuthentication(null);