private static boolean isDUnitTest(String name) {
      boolean isDUnitTest = false;
      if (name != null) {
        String[] split = name.split("_");
        if (split.length != 0 && split[0].endsWith("DUnitTest")) {
          isDUnitTest = true;
        }
      }
      return isDUnitTest;
    }
HeadlessGfshConfig for tests. Taken from TestableGfsh
geode-dunit/src/main/java/org/apache/geode/management/internal/cli/HeadlessGfsh.java