### Question:
ReferralImpl implements Referral { @Override public int hashCode() { int hash = 37; hash = hash * 17 + urls.size(); for ( String url : urls ) { hash = hash + url.hashCode(); } return hash; }  @Override int getReferralLength(); @Override void setReferralLength( int referralLength ); @Override Collection<String> getLdapUrls(); @Override Collection<byte[]> getLdapUrlsBytes(); @Override void addLdapUrl( String url ); @Override void addLdapUrlBytes( byte[] urlBytes ); @Override void removeLdapUrl( String url ); @Override int hashCode(); @Override boolean equals( Object obj ); @Override String toString();  }### Answer:
@Test public void testHashCodeSameObject() { ReferralImpl refs = new ReferralImpl(); assertTrue( refs.hashCode() == refs.hashCode() ); }