@Test
public void testEqualsExactCopy() throws LdapException
{
CompareRequestImpl req0 = new CompareRequestImpl();
req0.setMessageId( 5 );
req0.setName( new Dn( "cn=admin,dc=example,dc=com" ) );
req0.setAttributeId( "objectClass" );
req0.setAssertionValue( "top" );
CompareRequestImpl req1 = new CompareRequestImpl();
req1.setMessageId( 5 );
req1.setName( new Dn( "cn=admin,dc=example,dc=com" ) );
req1.setAttributeId( "objectClass" );
req1.setAssertionValue( "top" );
assertTrue( req0.equals( req1 ) );
assertTrue( req1.equals( req0 ) );