@Test
public void testSave() throws Exception {

    User user = userManager.getUser("-1");
    user.setPassword("user");
    user.setConfirmPassword("user");
    bean.setUser(user);
    assertEquals("home", bean.save());
    assertNotNull(bean.getUser());
    assertFalse(bean.hasErrors());
}