testMBeanName = new ObjectName(JMX_NAME_PREFIX + "test_module");
testMBeanName = new ObjectName(JMX_NAME_PREFIX + "jmx_module"); } catch (MalformedObjectNameException e1) { fail("Malformed JMX name: " + JMX_NAME_PREFIX + "jmx_module"); } try { testMBeanName2 = new ObjectName(JMX_NAME_PREFIX + "test_module");
	protected void registerMBeans() {		ComponentConfiguration componentConfiguration=EasyConf.getConfiguration("test_module");				ComponentConfigurationDynamicMBean confMBean = new ComponentConfigurationDynamicMBean(componentConfiguration);		ComponentConfigurationDynamicMBean confMBean2 = new ComponentConfigurationDynamicMBean("reloadedModule");		assertNotNull("MBean not created properly with ComponentConfiguration constructor", confMBean);		assertNotNull("MBean not created properly with String constructor", confMBean2);		assertNotNull("Error creating ComponentConfiguration", confMBean2				.getComponentConfiguration());				try {			testMBeanName = new ObjectName(JMX_NAME_PREFIX + "test_module");		} catch (MalformedObjectNameException e1) {			fail("Malformed JMX name: " + JMX_NAME_PREFIX + "test_module");		}		try {			reloadedMBeanName = new ObjectName(JMX_NAME_PREFIX + "reloadedModule");		} catch (MalformedObjectNameException e1) {			fail("Malformed JMX name: " + JMX_NAME_PREFIX + "reloadedModule");		}		assertNotNull("JMX ObjectName not created porperly", testMBeanName);		assertNotNull("JMX ObjectName not created porperly", reloadedMBeanName);		try {			ObjectInstance instance = mbeanServer.registerMBean(confMBean,					testMBeanName);			assertNotNull("Object Instance not created properly", instance);			instance = mbeanServer.registerMBean(confMBean,					reloadedMBeanName);			assertNotNull("Object Instance not created properly", instance);		} catch (InstanceAlreadyExistsException e) {		} catch (MBeanRegistrationException e) {			fail("Mbean not registerd properly");		} catch (NotCompliantMBeanException e) {			fail("Not Mbean compliant: " + e.getLocalizedMessage());		}	}