* Test method for equals()
*/
@Test
public void testEqualsObject() throws Exception
{
Entry entry1 = new DefaultServerEntry( schemaManager );
Entry entry2 = new DefaultServerEntry( schemaManager );
assertEquals( entry1, entry2 );
entry1.setDn( EXAMPLE_DN );
assertNotSame( entry1, entry2 );
entry2.setDn( EXAMPLE_DN );
assertEquals( entry1, entry2 );
EntryAttribute attrOC = new DefaultServerAttribute( "objectClass", atOC, "top", "person" );
EntryAttribute attrCN = new DefaultServerAttribute( "cn", atCN, "test1", "test2" );
EntryAttribute attrSN = new DefaultServerAttribute( "sn", atSN, "Test1", "Test2" );
EntryAttribute attrPWD = new DefaultServerAttribute( "userPassword", atPwd, BYTES1, BYTES2 );
entry1.put( attrOC, attrCN, attrSN, attrPWD );
entry2.put( attrOC, attrCN, attrSN );
assertNotSame( entry1, entry2 );
entry2.put( attrPWD );
assertEquals( entry1, entry2 );
EntryAttribute attrL1 = new DefaultServerAttribute( "l", atL, "Paris", "New-York" );
EntryAttribute attrL2 = new DefaultServerAttribute( "l", atL, "Paris", "Tokyo" );
entry1.put( attrL1 );
entry2.put( attrL1 );
assertEquals( entry1, entry2 );
entry1.add( "l", "London" );
assertNotSame( entry1, entry2 );
entry2.add( attrL2 );
assertNotSame( entry1, entry2 );
entry1.clear();
entry2.clear();
assertEquals( entry1, entry2 );
}