@Test
public void testRevertModifyOperations() throws Exception
{
LdapConnection sysRoot = getAdminConnection( ldapServer );
Entry entry = new DefaultClientEntry( new DN( "ou=test5,ou=system" ) );
entry.add( SchemaConstants.OBJECT_CLASS_AT, "organizationalUnit" );
entry.put( SchemaConstants.OU_AT, "test5" );
sysRoot.add( entry );
// -------------------------------------------------------------------
// Modify ADD Test
// -------------------------------------------------------------------
// tag after the addition before modify ADD
Tag t0 = service.getChangeLog().tag();
assertPresent( sysRoot, "ou=test5,ou=system" );
// modify the test entry to add description and test new attr appears
ModifyRequest modReq = new ModifyRequest( entry.getDn() );
modReq.add( "description", "a desc value" );
sysRoot.modify( modReq );
Entry resusitated = ( ( SearchResultEntry ) sysRoot.lookup( "ou=test5,ou=system" ) ).getEntry();
assertNotNull( resusitated );