Constructor bobctor =
ModelMBeanConstructorInfoTest.Bob.class.getConstructor(new Class[]{String.class});
String[] fields = {"name", "descriptorType", "role"};
String[] values = {bobctor.getName(), "operation", "constructor"};
DescriptorSupport ds = new DescriptorSupport(fields, values);
ModelMBeanConstructorInfo ctorinfo =
new ModelMBeanConstructorInfo("BobBuilder", bobctor, ds);
Descriptor d = ctorinfo.getDescriptor();
String dispname = (String)d.getFieldValue("displayName");
assertTrue("Unexpected displayName",
dispname.compareTo(bobctor.getName()) == 0);
}