@Test
  public void testRegionDistributedLockSimple() throws CacheException {
    final String name = getUniqueName();
    Region r = getOrCreateRootRegion().createSubregion(name, getGlobalAttrs());
    Lock lock = r.getRegionDistributedLock();
    lock.lock();
    lock.unlock();
  }
Test Region.getRegionDistributedLock(), calling lock() and then unlock()
geode-core/src/distributedTest/java/org/apache/geode/cache30/GlobalLockingDUnitTest.java