String objectName = "spring:bean=test,proxy=true";
Map beans = new HashMap();
beans.put(objectName, proxy);
exporter.setBeans(beans);
exporter.afterPropertiesSet();
MBeanInfo inf = getServer().getMBeanInfo(ObjectNameManager.getInstance(objectName));
assertEquals("Incorrect number of operations", getExpectedOperationCount(), inf.getOperations().length);
assertEquals("Incorrect number of attributes", getExpectedAttributeCount(), inf.getAttributes().length);