long[] threadIds = bean.findDeadlockedThreads(); if (threadIds != null) { cause = new DeadlockException(threadIds);
assertEquals(2, ((DeadlockException) cause).getThreadInfos().length); } finally {
long[] threadIds = bean.findDeadlockedThreads(); if (threadIds != null) { cause = new DeadlockException(threadIds);