ArrayList<RawAttribute> rawAttrs = new ArrayList<RawAttribute>();
rawAttrs.add(RawAttribute.create("objectClass", ocValues));
rawAttrs.add(RawAttribute.create("o", "test"));
AddOperationBasis addOperation =
new AddOperationBasis(conn, conn.nextOperationID(), conn.nextMessageID(),
controls, ByteString.valueOf("o=test"), rawAttrs);
addOperation.run();
assertEquals(addOperation.getResultCode(), ResultCode.SUCCESS);
assertFalse(DirectoryServer.entryExists(DN.decode("o=test")));
}