assertEquals(2, conditionalRun.getState().getExecutionCondition().getCount());
assertEquals(5, conditionalRun.getState().getEndingCondition().getCount());
assertEquals(1, publisherHelper.nbUpdated());
assertEquals(null, publisherHelper.getUpdateObjects().get(0));
publisherHelper.reset();
// release the barrier
(new Thread(barrierReleaser)).start();
// make sure the thread has time to execute
Thread.sleep(100);
assertFalse(conditionalRun.isRunning());