public void testMixedDynamicStandard()
{
MBeanServer server = MBeanServerFactory.createMBeanServer();
try
{
server.registerMBean(new DynamicAndStandard(), new ObjectName("test:foo=bar"));
MBeanInfo info = server.getMBeanInfo(new ObjectName("test:foo=bar"));
assertTrue("A mixed dynamic and standard mbean should be dynamic",
info.getDescription().equals(DynamicAndStandard.DESCRIPTION));
}
catch (NotCompliantMBeanException e)