Method deleteChildrenMethod = connection.getClass().getDeclaredMethod( "deleteRecursive", DN.class, Map.class, DeleteListener.class );
deleteChildrenMethod.setAccessible( true );
final AtomicInteger count = new AtomicInteger();
DeleteListener listener = new DeleteListener()
{
public void entryDeleted( LdapConnection connection, DeleteResponse response ) throws LdapException
{
assertNotNull( response );
assertEquals( ResultCodeEnum.SUCCESS, response.getLdapResult().getResultCode() );