{
MBeanServer server = createMBeanServer();
SimpleMXBeanSupport support = new SimpleMXBeanSupport();
ObjectName objectName = SimpleMXBeanSupportMXBean.REGISTERED_OBJECT_NAME;
server.registerMBean(support, objectName);
SimpleMXBeanSupportMXBean proxy = MXBeanFactory.makeProxy(server, objectName, SimpleMXBeanSupportMXBean.class);
OpenMBeanInfo info = (OpenMBeanInfo) server.getMBeanInfo(objectName);
OpenType[] types = new OpenType[SimpleInterface.TYPES.length];
for (int i = 0; i < types.length; ++i)
types[i] = MXBeanUtils.getOpenType(SimpleInterface.TYPES[i]);
proxy.setBigDecimal(SimpleInterface.bigDecimalChangedValue);
proxy.setBigInteger(SimpleInterface.bigIntegerChangedValue);
proxy.setBoolean(SimpleInterface.booleanChangedValue);
proxy.setByte(SimpleInterface.byteChangedValue);
proxy.setCharacter(SimpleInterface.characterChangedValue);
proxy.setDate(SimpleInterface.dateChangedValue);
proxy.setDouble(SimpleInterface.doubleChangedValue);
proxy.setFloat(SimpleInterface.floatChangedValue);
proxy.setInteger(SimpleInterface.integerChangedValue);
proxy.setLong(SimpleInterface.longChangedValue);
proxy.setObjectName(SimpleInterface.objectNameChangedValue);
proxy.setPrimitiveBoolean(SimpleInterface.primitiveBooleanChangedValue);
proxy.setPrimitiveByte(SimpleInterface.primitiveByteChangedValue);
proxy.setPrimitiveChar(SimpleInterface.primitiveCharChangedValue);
proxy.setPrimitiveDouble(SimpleInterface.primitiveDoubleChangedValue);
proxy.setPrimitiveFloat(SimpleInterface.primitiveFloatChangedValue);
proxy.setPrimitiveInt(SimpleInterface.primitiveIntChangedValue);
proxy.setPrimitiveLong(SimpleInterface.primitiveLongChangedValue);
proxy.setPrimitiveShort(SimpleInterface.primitiveShortChangedValue);
proxy.setShort(SimpleInterface.shortChangedValue);
proxy.setString(SimpleInterface.stringChangedValue);
checkAttributes(SimpleInterface.class, proxy, support, SimpleInterface.KEYS, types, SimpleInterface.CHANGED_VALUES, info);
}