public static void checkSenderNavigationAPIS(final VM vm, final DistributedMember senderMember) {
    SerializableRunnable checkNavigationAPIS =
        new SerializableRunnable("Check Sender Navigation APIs") {
          @Override
          public void run() {
            ManagementService service = ManagementService.getManagementService(cache);
            DistributedSystemMXBean bean = service.getDistributedSystemMXBean();
            ObjectName expectedName = service.getGatewaySenderMBeanName(senderMember, "pn");
            try {
              ObjectName actualName = bean.fetchGatewaySenderObjectName(senderMember.getId(), "pn");
              assertThat(actualName).isEqualTo(expectedName);
            } catch (Exception e) {
              fail("Sender Navigation Failed " + e);
            }

            assertThat(bean.listGatewaySenderObjectNames().length).isEqualTo(2);
            try {
              assertThat(bean.listGatewaySenderObjectNames(senderMember.getId()).length).isEqualTo(
                  1);
            } catch (Exception e) {
              fail("Sender Navigation Failed " + e);
            }

          }
        };
    vm.invoke(checkNavigationAPIS);
  }
Checks whether a GatewayReceiverMBean is created or not

@param vm reference to VM
geode-wan/src/distributedTest/java/org/apache/geode/internal/cache/wan/WANTestBase.java