public void testReverseModifyDNSuperior() throws LdapException
{
Dn dn = new Dn( "cn=john doe, dc=example, dc=com" );
Dn newSuperior = new Dn( "ou=system" );
Entry entry = new DefaultEntry( dn );
entry.add( "objectClass", "person", "uidObject" );
entry.add( "cn", "john doe", "jack doe" );
entry.add( "sn", "doe" );
entry.add( "uid", "jdoe" );
List<LdifEntry> reverseds = LdifRevertor.reverseMoveAndRename(entry, newSuperior, new Rdn("cn=jack doe"), false);
assertNotNull( reverseds );
assertEquals( 1, reverseds.size() );