### Question:
User implements Serializable { public void setName(String name) { this.name = name; } User();  User(String name, String email); Integer getId(); void setId(Integer id); String getName(); void setName(String name); String getEmail(); void setEmail(String email); @Override int hashCode(); @Override boolean equals(Object object); @Override String toString();  }### Answer:
@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")); }