    @Test
    public void update() {

        User user = new User("User", "user@test.com");
        user = userBean.add(user);
        user.setName("User1");
        userBean.update(user);

        Assert.assertNotNull(userBean.findByName("User1"));
    }