You can use jconsole to inspect and use the MBeans :
To test the MBeans :
quickstarts in the left column of the console.quickstarts, you see the 4 MBeans: AnnotatedComponentHelloWorld, MXComponentHelloWorld, MXPojoHelloWorld, and SarMXPojoHelloWorldOperations --> sayHello.<your name>!.