}
public void testAvoidConcurrentStatePush() throws Exception {
final CountDownLatch pushStateCanFinish = new CountDownLatch(1);
final CountDownLatch secondActiveStatusChangerCanStart = new CountDownLatch(1);
SingletonStoreConfiguration singletonConfig = createSingletonStoreConfiguration();
final TestingSingletonStore mscl = new TestingSingletonStore(pushStateCanFinish, secondActiveStatusChangerCanStart, singletonConfig);
Future f1 = fork(createActiveStatusChanger(mscl));
assert secondActiveStatusChangerCanStart.await(1000, TimeUnit.MILLISECONDS) : "Failed waiting on latch";