boolean requeued1 = leaderSelector1.requeue();
boolean requeued2 = leaderSelector2.requeue();
Assert.assertTrue(requeued1);
Assert.assertTrue(requeued2);
Assert.assertTrue(timing.acquireSemaphore(semaphore, 1));
Assert.assertEquals(leaderCount.get(), 1);
if ( leaderSelector1.hasLeadership() )
{
leaderSelector1.close();