public void testEqualsExactCopy() throws LdapException
{
BindRequestImpl req0 = new BindRequestImpl();
req0.setMessageId( 5 );
req0.setCredentials( "password".getBytes() );
req0.setName( new Dn( "cn=admin,dc=example,dc=com" ) );
req0.setSimple( true );
req0.setVersion3( true );
BindRequestImpl req1 = new BindRequestImpl();
req1.setMessageId( 5 );
req1.setCredentials( "password".getBytes() );
req1.setName( new Dn( "cn=admin,dc=example,dc=com" ) );
req1.setSimple( true );
req1.setVersion3( true );
assertTrue( req0.equals( req1 ) );
}