### Question:
User extends BaseEntity implements UserEntry { @JsonIgnore @Override public String getUsername() { return getEmail(); }  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 getUsername() throws Exception { entity.setEmail("abc@abc.com"); assertEquals("abc@abc.com", entity.getUsername()); }