super(name);
}
public void testConfigureMCFromJMX() throws Throwable
{
ControllerContext mbeanContext = getControllerContext("jboss.test:type=test");
assertNotNull(mbeanContext);
Object mbean = mbeanContext.getTarget();
assertNotNull(mbean);
assertInstanceOf(Simple.class, mbean);
Simple simple = (Simple)mbean;
String string = simple.getAttribute1();
assertEquals("someattrib", string);
ControllerContext beanContext = getControllerContext("Test");
assertNotNull(beanContext);
Object bean = beanContext.getTarget();
assertNotNull(bean);
assertInstanceOf(SimpleStringBean.class, bean);
SimpleStringBean simpleBean = (SimpleStringBean) bean;
assertEquals(string, simpleBean.getString1());