### Question:
SearchResultEntryImpl extends AbstractResponse implements SearchResultEntry { @Override public int hashCode() { int hash = 37; if ( entry != null ) { hash = hash * 17 + entry.hashCode(); } hash = hash * 17 + super.hashCode(); return hash; } SearchResultEntryImpl();  SearchResultEntryImpl( final int id ); @Override Entry getEntry(); @Override void setEntry( Entry entry ); @Override Dn getObjectName(); @Override void setObjectName( Dn objectName ); @Override int hashCode(); @Override boolean equals( Object obj ); @Override String toString();  }### Answer:
@Test public void testHashCodeSameObject() { SearchResultEntryImpl resp = new SearchResultEntryImpl( 5 ); assertTrue( resp.hashCode() == resp.hashCode() ); }