{
/*
* Create a Change number generator to generate new ChangeNumbers
* when we need to send operations messages to the replicationServer.
*/
ChangeNumberGenerator gen = new ChangeNumberGenerator(201, 0);
Entry parentEntry = TestCaseUtils.entryFromLdifString(
"dn: ou=rpConflict, "+ TEST_ROOT_DN_STRING + "\n"
+ "objectClass: top\n"
+ "objectClass: organizationalUnit\n");
Entry childEntry = TestCaseUtils.entryFromLdifString(
"dn: cn=child, ou=rpConflict,"+ TEST_ROOT_DN_STRING + "\n"
+ "objectClass: top\n"
+ "objectClass: person\n"
+ "objectClass: organizationalPerson\n"
+ "objectClass: inetOrgPerson\n" + "uid: user.1\n"
+ "description: This is the description for Aaccf Amar.\n" + "st: NC\n"
+ "postalAddress: Aaccf Amar$17984 Thirteenth Street"
+ "$Rockford, NC 85762\n" + "mail: user.1@example.com\n"
+ "cn: Aaccf Amar\n" + "l: Rockford\n"
+ "street: 17984 Thirteenth Street\n"
+ "employeeNumber: 1\n"
+ "sn: Amar\n" + "givenName: Aaccf\n" + "postalCode: 85762\n"
+ "userPassword: password\n" + "initials: AA\n");
TestCaseUtils.addEntry(parentEntry);
TestCaseUtils.addEntry(childEntry);
assertTrue(DirectoryServer.entryExists(parentEntry.getDN()),
"Parent entry expected to exist.");
assertTrue(DirectoryServer.entryExists(childEntry.getDN()),
"Child entry expected to be exist.");
String parentUUID = getEntryUUID(parentEntry.getDN());
String childUUID = getEntryUUID(childEntry.getDN());
ChangeNumber cn2 = gen.newChangeNumber();
DeleteMsg delMsg = new DeleteMsg(
parentEntry.getDN().toNormalizedString(),
cn2,
parentUUID);