@Test
  public void testRemoteInvokeAsync() throws Exception {
    String name = getUniqueName();
    String value = "Hello";

    AsyncInvocation<Void> async1 =
        vm0.<Void>invokeAsync(() -> remoteBind(name, value)).await();
    AsyncInvocation<Void> async2 =
        vm0.<Void>invokeAsync(() -> remoteValidateBind(name, value)).await();
    async1.await();
    async2.await();
  }
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