assertTrue( entry.containsAttribute( "userPassword" ) );
EntryAttribute attr = entry.get( "objectclass" );
assertEquals( 2, attr.size() );
EntryAttribute attrCN2 = new DefaultEntryAttribute( "cn", "test1", "test3" );
entry.add( attrCN2 );
assertEquals( 4, entry.size() );
attr = entry.get( "cn" );
assertEquals( 3, attr.size() );
assertTrue( attr.contains( "test1", "test2", "test3" ) );
// Check adding some byte[] values (they will not be transformed to Strings)
attrCN2.clear();
attrCN2.add( BYTES1, BYTES2 );
entry.add( attrCN2 );
assertEquals( 4, entry.size() );
attr = entry.get( "cn" );
assertEquals( 3, attr.size() );
assertTrue( attr.contains( "test1", "test2", "test3" ) );