props.add(prop);
prop = new ActivationConfigPropertyMetaData();
prop.setName("prop2");
prop.setValue(prop.getName() + "Original");
props.add(prop);
ActivationConfigMetaData aconfig = new ActivationConfigMetaData();
aconfig.setActivationConfigProperties(props);
original.setActivationConfig(aconfig);
JBossMessageDrivenBeanMetaData override = new JBossMessageDrivenBeanMetaData();
override.setEjbName("mdb");
props = new ActivationConfigPropertiesMetaData();
prop = new ActivationConfigPropertyMetaData();
prop.setName("prop2");
prop.setValue(prop.getName() + "Override");
props.add(prop);
prop = new ActivationConfigPropertyMetaData();
prop.setName("prop3");
prop.setValue(prop.getName() + "Override");
props.add(prop);
aconfig = new ActivationConfigMetaData();
aconfig.setActivationConfigProperties(props);
override.setActivationConfig(aconfig);
JBossMessageDrivenBeanMetaData merged = new JBossMessageDrivenBeanMetaData();
merged.merge(override, original);
aconfig = merged.getActivationConfig();
assertNotNull(aconfig);
props = aconfig.getActivationConfigProperties();
assertNotNull(props);
assertEquals(3, props.size());
prop = props.get("prop1");
assertNotNull(prop);
assertEquals(prop.getName() + "Original", prop.getValue());