public void testToString()
throws Exception
{
MBeanServer server = MBeanServerFactory.newMBeanServer();
ObjectInvocationHandlerTest test = new ObjectInvocationHandlerTest();
server.registerMBean(test, invocationHandlerTestName);
InvocationHandlerTestMBean proxy = (InvocationHandlerTestMBean) MBeanServerInvocationHandler.newProxyInstance(
server, invocationHandlerTestName, InvocationHandlerTestMBean.class, true);
assertEquals("TOSTRING", proxy.toString());