assertEquals( 1, found.get( "userPassword" ).size() );
assertTrue( found.contains( "mail", Strings.EMPTY_BYTES ) );
assertTrue( found.contains( "userPassword", "" ) );
// Now, do a replace with no value. We should not anymore have a mail
connection.modify( new Dn( "uid=12345,ou=system" ),
new DefaultModification( ModificationOperation.REPLACE_ATTRIBUTE, "mail" )
);
// Get back the entry
found = connection.lookup( "uid=12345,ou=system" );