ArrayList<ByteString> values = new ArrayList<ByteString>();
values.add(ByteString.valueOf("Foo"));
LDAPAttribute attr = new LDAPAttribute("givenName", values);
ArrayList<RawModification> mods = new ArrayList<RawModification>();
mods.add(new LDAPModification(ModificationType.REPLACE, attr));
ModifyOperation modifyOperation =
conn.processModify(
ByteString.valueOf("givenName=Test,sn=User," + baseDN), mods);
assertFalse(modifyOperation.getResultCode() == ResultCode.SUCCESS);