final CountDownLatch pushStateCanFinish = new CountDownLatch(1);
SingletonStoreDefaultConfig ssdc = new SingletonStoreDefaultConfig();
ssdc.setPushStateWhenCoordinatorTimeout(1000);
final MockSingletonStoreCacheLoader mscl = new MockSingletonStoreCacheLoader(pushStateCanFinish, null, ssdc);
Future f = Executors.newSingleThreadExecutor().submit(createActiveStatusChanger(mscl));
pushStateCanFinish.await(2000, TimeUnit.MILLISECONDS);
pushStateCanFinish.countDown();
try
{
f.get();
fail("Should have timed out");
}
catch (ExecutionException e)
{
Throwable t = e.getCause().getCause().getCause();