@Test
  public void createRegion_withLambda_THIS_IS_BEST() {
    getVM(0).invoke("Create Region", () -> {
      Cache cache = new CacheFactory().create();
      RegionFactory regionFactory = cache.createRegionFactory(new AttributesFactory().create());
      LocalRegion region = (LocalRegion) regionFactory.create("region1");
      assertThat(region).isNotNull();
    });
  }
Use lambda without having to specify run() with throws Exception -- best!
geode-dunit/src/distributedTest/java/org/apache/geode/test/dunit/examples/CatchingUnexpectedExceptionExampleTest.java