private void registerMBeanWithCompositeTypeGetters(final VM memberVM) {
    memberVM.invoke("registerMBeanWithCompositeTypeGetters", () -> {
      SystemManagementService service = managementTestRule.getSystemManagementService();

      ObjectName objectName = new ObjectName("GemFire:service=custom,type=composite");
      CompositeTestMXBean compositeTestMXBean = new CompositeTestMBean();

      objectName = service.registerMBean(compositeTestMXBean, objectName);
      service.federate(objectName, CompositeTestMXBean.class, false);
    });
  }
Distributed tests for registering of custom mbean using composite types.
<p>

See User API {@link ManagementService#registerMBean(Object, ObjectName)}.
geode-core/src/distributedTest/java/org/apache/geode/management/CompositeTypeTestDUnitTest.java