JobRecipient extends BaseEntity implements Recipient { @Override public int hashCode() { return new HashCodeBuilder(29, 45).append(getId()).toHashCode(); } JobRecipient();  JobRecipient(String address, RecipientType type); @Override String getAddress(); void setAddress(String address); @Override RecipientType getType(); void setType(RecipientType type); @Override String toString(); @Override boolean equals(Object obj); @Override int hashCode();  }
@Test public void testHashCode_1() throws Exception { JobRecipient fixture = new JobRecipient("", RecipientType.email); int result = fixture.hashCode(); assertEquals(1305, result); }