### Question:
MBeans { public static String toJson () { MBeanServer server = ManagementFactory.getPlatformMBeanServer(); return toJson(server); }  static String toJson(); static String toJson(final MBeanServer server); static Map<String, Object> map(  final ObjectName name ); static Map<String, Object> map( final MBeanServer server,
                                           final ObjectName name ); static String[] getAttributeNames( MBeanInfo info ); static DynamicMBean createMBean( final Object instance, final Class<?> managedInterface ); static void registerMBean( final String prefix, final String name, final Object mbean );  }### Answer:
@Test public void jsonDump() throws Exception { puts(MBeans.toJson()); }