@Override
      public void run2() throws CacheException {
        Region r = getOrCreateRootRegion().createSubregion(name, getGlobalAttrs());
        Lock lock = r.getDistributedLock(key);
        lock.lock();
      }
Get the lock in one VM, try to create in other
geode-core/src/distributedTest/java/org/apache/geode/cache30/GlobalLockingDUnitTest.java