*/
private static void verifyMBean(IdxRegion region) throws Exception {
final MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
ObjectName objectName =
IdxRegionMBeanImpl.generateObjectName(region.getRegionInfo());
MBeanInfo mbeanInfo = mbs.getMBeanInfo(objectName);
for (MBeanAttributeInfo aInfo : mbeanInfo.getAttributes()) {
Object value = mbs.getAttribute(objectName, aInfo.getName());
if (aInfo.isWritable()) {
mbs.setAttribute(objectName, new Attribute(aInfo.getName(), value));
}
}
for (MBeanOperationInfo oInfo : mbeanInfo.getOperations()) {
if (oInfo.getSignature().length == 0) {
mbs.invoke(objectName, oInfo.getName(), new Object[]{}, new String[]{});
} else {
LOG.warn("Did not test operation " + oInfo.getName());
}