@Test
  public void testInvokeWithNamedLambda() {
    assertThat(vm0.invoke("getId", () -> DUnitEnv.get().getId()), is(0));
    assertThat(vm1.invoke("getId", () -> DUnitEnv.get().getId()), is(1));
  }
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