@Test
  public void testInvokeNamedRunnableLambda() {
    Throwable thrown = catchThrowable(() -> vm0.invoke("throwSomething",
        BasicDistributedTest::throwException));

    assertThat(thrown, notNullValue());
    assertThat(thrown.getCause(), notNullValue());
    assertThat(thrown.getCause(), instanceOf(BasicDUnitException.class));
    assertThat(thrown.getCause().getMessage(), nullValue());
  }
This class tests the basic functionality of the distributed unit test framework.
geode-dunit/src/distributedTest/java/org/apache/geode/test/dunit/tests/BasicDistributedTest.java