@Test
  public void hasFourVMsByDefault() {
    assertThat(getVMCount()).isEqualTo(4);
  }
{@code DistributedRule} can also be used in DistributedTests as a {@code ClassRule}. This ensures
that DUnit VMs will be available to non-Class {@code Rule}s. However, you may want to declare
{@code DistributedRule.TearDown} as a non-Class {@code Rule} so that check for suspect strings is
performed after each test method.

<pre>
{@literal @}ClassRule
public static DistributedRule distributedRule = new DistributedRule();

{@literal @}Rule
public DistributedRule.TearDown distributedRuleTearDown = new DistributedRule.TearDown();

{@literal @}Test
public void shouldHaveFourDUnitVMsByDefault() {
  assertThat(getVMCount()).isEqualTo(4);
}
</pre>
geode-dunit/src/distributedTest/java/org/apache/geode/test/dunit/examples/DistributedRuleAsClassRuleExampleTest.java