public static ThreadGroup getThreadGroup(final String threadGroupName) {
    synchronized (loggingThreadGroups) {
      for (Object object : loggingThreadGroups) {
        LoggingThreadGroup threadGroup = (LoggingThreadGroup) object;
        if (threadGroup.getName().equals(threadGroupName)) {
          return threadGroup;
        }
      }
      return null;
    }
  }
Note: Must be used for test purposes ONLY.

@return thread group with given name.
geode-core/src/main/java/org/apache/geode/internal/logging/LoggingThreadGroup.java