ArrayList<ByteString> values = new ArrayList<ByteString>();
values.add(ByteString.valueOf("newPassword"));
LDAPAttribute attr = new LDAPAttribute("userPassword", values);
mods.add(new LDAPModification(ModificationType.REPLACE, attr));
ModifyRequestProtocolOp modifyRequest =
new ModifyRequestProtocolOp(
ByteString.valueOf("uid=test.user,o=test"), mods);
message = new LDAPMessage(2, modifyRequest);
w.writeMessage(message);
message = r.readMessage();