*/
@Test
public void testHashCode() throws LdapInvalidAttributeValueException
{
AttributeType attribute = EntryUtils.getBytesAttributeType();
BinaryValue v0 = new BinaryValue( attribute, new byte[]
{ 0x01, 0x02 } );
BinaryValue v1 = new BinaryValue( attribute, new byte[]
{ ( byte ) 0x81, ( byte ) 0x82 } );
BinaryValue v2 = new BinaryValue( attribute, new byte[]
{ 0x01, 0x02 } );
assertEquals( v0.hashCode(), v1.hashCode() );
assertEquals( v1.hashCode(), v2.hashCode() );
assertEquals( v0.hashCode(), v2.hashCode() );
assertEquals( v0, v1 );
assertEquals( v0, v2 );
assertEquals( v1, v2 );
BinaryValue v3 = new BinaryValue( attribute, new byte[]
{ 0x01, 0x03 } );
assertFalse( v3.equals( v0 ) );
assertFalse( v3.equals( v1 ) );
assertFalse( v3.equals( v2 ) );
}