### Question:
User extends BaseEntity implements UserEntry { @Override public String toString() { return "User{" + "email='" + email + '\'' + ", name='" + name + '\'' + ", surname='" + surname + '\'' + ", password='" + password + '\'' + ", active=" + active + ", failCount=" + failCount + ", lastLoginTime=" + lastLoginTime + ", lastLogoutTime=" + lastLogoutTime + ", roleOid='" + roleOid + '\'' + '}'; }  void setRoleName(String roleName); String getRoleName(); String getEmail(); void setEmail(String email); String getName(); void setName(String name); String getSurname(); void setSurname(String surname); String getPassword(); void setPassword(String password); String getRoleOid(); void setRoleOid(String roleOid); @JsonIgnore @Override String getRoleId(); boolean isActive(); void setActive(boolean active); @JsonIgnore @Override String getUserId(); @JsonIgnore @Override String getUsername(); Date getLastLoginTime(); void setLastLoginTime(Date lastLoginTime); Date getLastLogoutTime(); void setLastLogoutTime(Date lastLogoutTime); int getFailCount(); void setFailCount(int failCount); @Override String toString();  }### Answer:
@Test public void testToString() throws Exception { User user = new User(); user.setOid("123123"); User user1 = new User(); user1.setOid("123123"); assertEquals(user.toString(), user1.toString()); }