public void forceGrantorRecovery(String serviceName) {
    synchronized (this) {
      GrantorInfo gi = nameToInfo.get(serviceName);
      if (gi.isInitiatingTransfer()) {
        throw new IllegalStateException(
            "Cannot force grantor recovery for grantor that is transferring");
      }
      nameToInfo.put(serviceName,
          new GrantorInfo(gi.getId(), gi.getVersionId(), gi.getSerialNumber(), true));
    }
  }
Testing method to force grantor recovery state for named service
geode-core/src/main/java/org/apache/geode/distributed/internal/locks/ElderState.java