private <V> V executeMethodOnClass(final Class<?> targetClass, final String methodName,
      final Object[] args) {
    try {
      MethodInvokerResult result =
          client.executeMethodOnClass(targetClass.getName(), methodName, args);
      if (result.exceptionOccurred()) {
        throw new RMIException(this, targetClass.getName(), methodName, result.getException(),
            result.getStackTrace());
      }
      return (V) result.getResult();
    } catch (RemoteException exception) {
      throw new RMIException(this, targetClass.getName(), methodName, exception);
    }
  }
Synchronously bounces (forced kill and restarts) this {@code VM}. Concurrent bounce attempts
are
synchronized but attempts to invoke methods on a bouncing {@code VM} will cause test failure.
Tests using bounce should be placed at the end of the DUnit test suite, since an exception here
will cause all tests using the unsuccessfully bounced {@code VM} to fail.

This method is currently not supported by the standalone DUnit runner.

Note: Forced bounce does not invoke shutdown hooks.

@return this VM
@throws RMIException if an exception occurs while bouncing this {@code VM}
geode-dunit/src/main/java/org/apache/geode/test/dunit/VM.java