protected void dumpService() {
    synchronized (tokens) {
      StringBuilder buffer = new StringBuilder();
      buffer.append("  ").append(tokens.size()).append(" tokens, ");
      buffer.append(numLocksHeldInThisVM()).append(" locks held\n");
      for (Map.Entry<Object, DLockToken> entry : tokens.entrySet()) {
        buffer.append("    ").append(entry.getKey()).append(": ");
        DLockToken token = entry.getValue();
        buffer.append(token.toString()).append("\n");
      }
      logger.info(LogMarker.DLS_MARKER, buffer);
    }
  }
TEST HOOK: Logs all lock tokens for this service at INFO level. Synchronizes on tokens map and
each lock token.
geode-core/src/main/java/org/apache/geode/distributed/internal/locks/DLockService.java