public final boolean isConnectedToDS() {
    return system != null && system.isConnected();
  }
Returns whether or this VM is connected to a {@link DistributedSystem}.
geode-dunit/src/main/java/org/apache/geode/test/dunit/internal/JUnit4DistributedTestCase.java