ArrayList<RawModification> ldapMods = new ArrayList<RawModification>();
ArrayList<ByteString> ldapValues = new ArrayList<ByteString>();
ldapValues.add(ByteString.valueOf("foo"));
LDAPAttribute ldapAttr = new LDAPAttribute("description", ldapValues);
ldapMods.add(new LDAPModification(ModificationType.ADD, ldapAttr));
opList.add(new ModifyOperationBasis(conn, conn.nextOperationID(),
conn.nextMessageID(), null,
ByteString.empty(), ldapMods));
opList.add(new ModifyOperationBasis(conn, conn.nextOperationID(),
conn.nextMessageID(), noControls,
ByteString.empty(), ldapMods));
opList.add(new ModifyOperationBasis(conn, conn.nextOperationID(),
conn.nextMessageID(), null,
ByteString.valueOf("o=test"), ldapMods));
opList.add(new ModifyOperationBasis(conn, conn.nextOperationID(),
conn.nextMessageID(), noControls,
ByteString.valueOf("o=test"), ldapMods));
ldapMods = new ArrayList<RawModification>();
ldapMods.add(new LDAPModification(ModificationType.DELETE, ldapAttr));
opList.add(new ModifyOperationBasis(conn, conn.nextOperationID(),
conn.nextMessageID(), null,
ByteString.empty(), ldapMods));
opList.add(new ModifyOperationBasis(conn, conn.nextOperationID(),
conn.nextMessageID(), noControls,
ByteString.empty(), ldapMods));
opList.add(new ModifyOperationBasis(conn, conn.nextOperationID(),
conn.nextMessageID(), null,
ByteString.valueOf("o=test"), ldapMods));
opList.add(new ModifyOperationBasis(conn, conn.nextOperationID(),
conn.nextMessageID(), noControls,
ByteString.valueOf("o=test"), ldapMods));
ldapMods = new ArrayList<RawModification>();
ldapMods.add(new LDAPModification(ModificationType.REPLACE, ldapAttr));
opList.add(new ModifyOperationBasis(conn, conn.nextOperationID(),
conn.nextMessageID(), null,
ByteString.empty(), ldapMods));
opList.add(new ModifyOperationBasis(conn, conn.nextOperationID(),
conn.nextMessageID(), noControls,
ByteString.empty(), ldapMods));
opList.add(new ModifyOperationBasis(conn, conn.nextOperationID(),
conn.nextMessageID(), null,
ByteString.valueOf("o=test"), ldapMods));
opList.add(new ModifyOperationBasis(conn, conn.nextOperationID(),
conn.nextMessageID(), noControls,
ByteString.valueOf("o=test"), ldapMods));
ldapMods = new ArrayList<RawModification>();
ArrayList<ByteString> values2 = new ArrayList<ByteString>();
values2.add(ByteString.valueOf("bar"));
LDAPAttribute ldapAttr2 = new LDAPAttribute("description", values2);
ldapMods.add(new LDAPModification(ModificationType.DELETE, ldapAttr));
ldapMods.add(new LDAPModification(ModificationType.ADD, ldapAttr2));
opList.add(new ModifyOperationBasis(conn, conn.nextOperationID(),
conn.nextMessageID(), null,
ByteString.empty(), ldapMods));
opList.add(new ModifyOperationBasis(conn, conn.nextOperationID(),
conn.nextMessageID(), noControls,
ByteString.empty(), ldapMods));
opList.add(new ModifyOperationBasis(conn, conn.nextOperationID(),
conn.nextMessageID(), null,
ByteString.valueOf("o=test"), ldapMods));
opList.add(new ModifyOperationBasis(conn, conn.nextOperationID(),
conn.nextMessageID(), noControls,
ByteString.valueOf("o=test"), ldapMods));
ldapMods = new ArrayList<RawModification>();
ldapAttr2 = new LDAPAttribute("cn", values2);
ldapMods.add(new LDAPModification(ModificationType.REPLACE, ldapAttr));
ldapMods.add(new LDAPModification(ModificationType.REPLACE, ldapAttr2));
opList.add(new ModifyOperationBasis(conn, conn.nextOperationID(),
conn.nextMessageID(), null,