GBeanMBeanAttribute attribute = new GBeanMBeanAttribute(dynamicGmbean, dynamicAttributeInfo);
final ObjectName name = new ObjectName("test:name=MyMockDynamicGBean");
final Kernel kernel = new Kernel("test.kernel", "test");
try {
kernel.boot();
kernel.loadGBean(name, dynamicGmbean);
kernel.startGBean(name);
final Integer zero = new Integer(0);
assertEquals(zero, attribute.getValue());