@Test
public void testReverseModifyDelExistingOuValue() throws LdapException
{
Entry modifiedEntry = buildEntry();
EntryAttribute ou = new DefaultEntryAttribute( "ou" );
ou.add( "apache", "acme corp" );
modifiedEntry.put( ou );
Dn dn = new Dn( "cn=test, ou=system" );
Modification mod = new DefaultModification(
ModificationOperation.REMOVE_ATTRIBUTE,
new DefaultEntryAttribute( "ou", "acme corp" ) );
LdifEntry reversed = LdifRevertor.reverseModify( dn,
Collections.<Modification>singletonList( mod ), modifiedEntry );
assertNotNull( reversed );