ConfigurationData configurationData = new ConfigurationData(configurationId, kernel.getNaming());
GBeanData mockBean1 = configurationData.addGBean("MyBean", TestGBean.getGBeanInfo());
mockBean1.setAttribute("value", "1234");
// load and start the configuration
configurationManager.loadConfiguration(configurationData);
configurationManager.startConfiguration(configurationId);
// invoke GBean directly
TestGBean testGBean = (TestGBean) kernel.getGBean("MyBean");
assertEquals("1234", testGBean.getValue());