slm.releaseLock(l);
}
// Wait another 10 seconds and then stop the dispatcher
Thread.sleep(1000);
dispatcher.stop();
assertEquals(queuedCount, count.intValue());
// Check the busy lock count
if(slm!=null) {
System.out.println("Lock attempts " + slm.getLockAttempts());