Student implements Serializable { @Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (obj instanceof Student) { if (this.lastName.equals(((Student) obj).lastName) && this.firstName.equals(((Student) obj).firstName) && this.birthDate.equals(((Student) obj).birthDate)) { return true; } } return false; } Student();  Student(final String lastName, final String firstName,
            final Date birthDate); Long getId(); final PhoneNumber getPhoneNumber(); final void setPhoneNumber(final PhoneNumber pPhoneNumber); String getKey(); final String getLastName(); final void setLastName(final String pLastName); final String getFirstName(); final void setFirstName(final String pFirstName); final Date getBirthDate(); final void setBirthDate(final Date pBirthDate); final Float getAvgGrade(); final List<Grade> getGrades(); final Discipline[] getDisciplines(); final Gender getGender(); final void setGender(final Gender gender); @Override int hashCode(); @Override boolean equals(final Object obj); @Override String toString(); final Address getAddress(); final void setAddress(final Address pAddress); final byte[] getPicture(); void setPicture(final byte[] pPicture); Badge getBadge(); void setBadge(final Badge pBadge); void setId(Long id);  }
@Test public void shouldTestNotEq() { Student s1 = new Student("Steve", "Hostettler", new Date()); Student s2 = new Student("Steve", "Gostettler", new Date()); Assert.assertFalse("s1=s2", s1.equals(s2)); }