Student implements Serializable { @Override public String toString() { return "Student [id=" + getId() + ", lastName=" + lastName + ", firstName=" + firstName + ", birthDate=" + birthDate + ", phoneNumber=" + phoneNumber + ", grades=" + grades + "]"; } 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 shouldToString() throws Exception { DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); Date date = dateFormat.parse("2013-12-4"); Student s1 = new Student("Steve", "Hostettler", date); Assert.assertTrue("s1.toString()" , s1.toString().contains("Student [id=null, lastName=Steve, firstName=Hostettler, birthDate=Wed Dec 04 00:00:00")); }