public static boolean isLaunched() {
    return Boolean.getBoolean(LAUNCHED_PROPERTY);
  }
Test it see if the eclise dunit environment is launched.
geode-dunit/src/main/java/org/apache/geode/test/dunit/internal/DUnitLauncher.java