@Test
  public void testDistributedRegionMBeanHasGatewaySenderIds() {
    VM locator = Host.getLocator();
    VM managing = getManagingNode();
    VM sender = getManagedNodeList().get(0);

    int dsIdPort = locator.invoke(WANManagementDUnitTest::getLocatorPort);

    sender.invoke(() -> WANTestBase.createCache(dsIdPort));
    managing.invoke(() -> WANTestBase.createManagementCache(dsIdPort));
    startManagingNode(managing);

    sender
        .invoke(() -> WANTestBase.createSender("pn", 12, true, 100, 300, false, false, null, true));

    String regionName = getTestMethodName() + "_PR";
    sender.invoke(() -> WANTestBase.createPartitionedRegion(regionName, "pn", 0, 13, false));

    String regionPath = SEPARATOR + regionName;
    managing.invoke(() -> {
      ManagementService service = WANTestBase.getManagementService();
      await()
          .untilAsserted(() -> assertNotNull(service.getDistributedRegionMXBean(regionPath)));

      DistributedRegionMXBean bean = service.getDistributedRegionMXBean(regionPath);
      assertThat(bean.listRegionAttributes().getGatewaySenderIds()).containsExactly("pn");
    });
  }
Tests for WAN artifacts like Sender and Receiver. The purpose of this test is not to check WAN
functionality , but to verify ManagementServices running properly and reflecting WAN behaviour
and data properly
geode-wan/src/distributedTest/java/org/apache/geode/management/WANManagementDUnitTest.java