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();