"sn: xyz",
"test-attr-regex: invalid regex");
InternalClientConnection conn =
InternalClientConnection.getRootConnection();
AddOperation addOperation = conn.processAdd(entry.getDN(),
entry.getObjectClasses(),
entry.getUserAttributes(),
entry.getOperationalAttributes());
assertEquals(addOperation.getResultCode(),
ResultCode.INVALID_ATTRIBUTE_SYNTAX);
//This addition should go through.
TestCaseUtils.addEntry(
"dn: cn=syntax-test,o=test",