assertEquals( 1, listener.getEventRecords().size() );
rec = ( EventRecord ) listener.getEventRecords().get( 0 );
assertEquals( "objectAdded", rec.method );
// readd the entry once again just to make sure
ctx.createSubcontext( "ou=testentry", testEntry );
// Wait 1 second, as the process is asynchronous
Thread.sleep( 1000 );
assertEquals( 1, listener.getEventRecords().size() );