public void testRunDelayedNonDurableWithNewIdentity() throws Exception {
final CountDownLatch latch = new CountDownLatch(1);
txnScheduler.runTask(new TestAbstractKernelRunnable() {
public void run() throws Exception {
Identity owner = txnProxy.getCurrentOwner();
KernelRunnable r =
new NewIdentityKernelRunnable(owner, latch);
taskService.scheduleNonDurableTask(r, 50L, true);
}
}, taskOwner);
assertTrue(latch.await(100L, TimeUnit.MILLISECONDS));