public void testWrapExceptionsThrownByMBeanMethods() throws Exception
{
MBeanServer server = newMBeanServer();
MBeanThrowingExceptions mbean = new MBeanThrowingExceptions();
ObjectName objectName = ObjectName.getInstance(":name=exceptions");
server.registerMBean(mbean, objectName);
try
{