private AsyncInvocation<V> checkIsDone(final String message) {
    if (thread.isAlive()) {
      throw new IllegalStateException(message);
    }
    return this;
  }
Throws {@code IllegalStateException} if this {@code AsyncInvocation} is not done.

@param message The value to be used in constructing detail message

@return this {@code AsyncInvocation}

@throws IllegalStateException if this {@code AsyncInvocation} is not done.
geode-dunit/src/main/java/org/apache/geode/test/dunit/AsyncInvocation.java