@Test
public void testEdit() throws Exception {

    bean.setId("-1");
    assertEquals("editProfile", bean.edit());
    assertNotNull(bean.getUser().getUsername());
    assertFalse(bean.hasErrors());
}