* Tests for inequality when the objectName dn is not the same.
*/
@Test
public void testNotEqualDiffObjectName() throws LdapException
{
SearchResultEntryImpl resp0 = new SearchResultEntryImpl( 5 );
resp0.setEntry( getEntry() );
resp0.setObjectName( new Dn( "dc=apache,dc=org" ) );
SearchResultEntryImpl resp1 = new SearchResultEntryImpl( 5 );
resp1.setEntry( getEntry() );
resp1.setObjectName( new Dn( "dc=example,dc=com" ) );
assertFalse( "different object names should not be equal", resp1.equals( resp0 ) );
assertFalse( "different object names should not be equal", resp0.equals( resp1 ) );
}