@Test
  public void invokesMethodWithReturn() {
    MethodInvokerResult result = MethodInvoker.execute(getClass().getName(), "methodWithReturn");
    assertThat(result.getResult()).isInstanceOf(String.class);
  }
Unit tests for {@link MethodInvoker}. Extracted from {@link MethodInvoker}.
geode-dunit/src/test/java/org/apache/geode/test/dunit/internal/MethodInvokerTest.java