ManagedBeanDefinition { public MBeanInfo createMBeanInfo() { if (type != null) { return new MBeanInfo(type.getName(), description, getAttributeInfo(), getConstructorInfo(), getOperationInfo(), getNotificationInfo()); } else { return new MBeanInfo(name, description, getAttributeInfo(), getConstructorInfo(), getOperationInfo(), getNotificationInfo()); } }  ObjectName createObjectName(); MBeanInfo createMBeanInfo(); List<ManagedBeanInvocation.Operation> getOperations(); void setOperations(List<ManagedBeanInvocation.Operation> operations); List<ManagedBeanInvocation.Attribute> getAttributes(); void setAttributes(List<ManagedBeanInvocation.Attribute> attributes); String getDescription(); void setDescription(String description); Class getType(); void setType(Class type); String getName(); void setName(String name); String getObjectDomain(); void setObjectDomain(String objectDomain); String getObjectName(); void setObjectName(String objectName); static final String OPERATION_DESCRIPTION; static final String ATTRIBUTE_DESCRIPTION; }
@Test public void testBeanInfoEmpty() { ManagedBeanDefinition definition = new ManagedBeanDefinition(); MBeanInfo info = definition.createMBeanInfo(); Assert.assertEquals(info.getClassName(), "com.consol.citrus.CitrusMBean"); }