new DefaultModification( ModificationOperation.REPLACE_ATTRIBUTE, "userPassword", Strings.EMPTY_BYTES ),
new DefaultModification( ModificationOperation.ADD_ATTRIBUTE, "mail", ( String ) null )
);
// Get back the entry
Entry found = connection.lookup( "uid=12345,ou=system" );
assertNotNull( found );
assertNotNull( found.get( "mail" ) );
assertNotNull( found.get( "userPassword" ) );
assertEquals( 1, found.get( "mail" ).size() );