@Override
          public void run() {
            stuckThreads.add(Thread.currentThread());
            try {
              lock2.acquire();
              lock1.tryAcquire(10, TimeUnit.SECONDS);
            } catch (InterruptedException ignore) {
            }
            lock2.release();
          }
Make sure that we can detect a deadlock between two threads that are trying to acquire a two
different syncs in the different orders.
geode-core/src/integrationTest/java/org/apache/geode/distributed/internal/deadlock/DeadlockDetectorIntegrationTest.java