mmbean.setManagedResource(resource, "ObjectReference");
mmbean.setModelMBeanInfo(resource.getMBeanInfo());
server.registerMBean(mmbean, oname);
MyInterface2 mbean = (MyInterface2)MBeanProxy.get(
MyInterface2.class, oname, server);
assertTrue(mbean.doOperation().equals("doOperation"));
try
{
assertTrue(mbean.executeThis("executeThis").equals("executeThis"));
}
catch (ClassCastException e) {
fail("KNOWN ISSUE: proxy generates incorrect JMX invocation " +
"signature in case argument subclasses are used.");
}