TestCache.passivationCompleteNotification.wait(10000);
}
assertEquals(0, PassivatingStatefulBean.postActivations.get());
bean.activate();
assertEquals(1, PassivatingStatefulBean.postActivations.get());
PassivatingStatefulBean.barrier.await(10, TimeUnit.SECONDS);
synchronized (TestCache.passivationCompleteNotification) {
TestCache.passivationCompleteNotification.wait(10000);