assertEquals(addOperation.getResultCode(), ResultCode.SUCCESS);
ArrayList<ByteString> values = new ArrayList<ByteString>();
values.add(ByteString.valueOf("foo"));
LDAPAttribute attr = new LDAPAttribute("mail", values);
ArrayList<RawModification> mods = new ArrayList<RawModification>();
mods.add(new LDAPModification(ModificationType.DELETE, attr));
values = new ArrayList<ByteString>();
values.add(ByteString.valueOf("bar"));
attr = new LDAPAttribute("mail", values);
mods.add(new LDAPModification(ModificationType.ADD, attr));
ModifyOperation modifyOperation =
conn.processModify(ByteString.valueOf("uid=test.user," + baseDN),
mods);