{
LDAPConnection con = getWiredConnection( ldapServer );
// first a valid attribute
LDAPAttribute attr = new LDAPAttribute( "description", "The description" );
LDAPModification mod = new LDAPModification( LDAPModification.ADD, attr );
// then an invalid one without any value
attr = new LDAPAttribute( "displayName" );
LDAPModification mod2 = new LDAPModification( LDAPModification.ADD, attr );
try
{
con.modify( "cn=Kate Bush,ou=system", new LDAPModification[] { mod, mod2 } );
fail( "error expected due to empty attribute value" );