@Test
  public void testVisibleNodes() {
    this.managementTestRule.createMember(this.memberVMs[0]);
    this.managementTestRule.createMember(this.memberVMs[1]);

    this.memberVMs[1].invoke("visibleNodes", () -> {
      ManagementService service = this.managementTestRule.getExistingManagementService();
      MemberMXBean memberMXBean = service.getMemberMXBean();
      assertThat(memberMXBean.getVisibleNodes()).isEqualTo(3);
    });
  }
Creates and starts a managerVM. Multiple Managers
geode-core/src/distributedTest/java/org/apache/geode/management/CacheManagementDUnitTest.java