}
public void testBusinessLocals()
{
// Override
BusinessLocalsMetaData overrideBusinessLocal = new BusinessLocalsMetaData();
overrideBusinessLocal.add("override1");
overrideBusinessLocal.add("override2");
overrideBusinessLocal.add("override3");
JBossSessionBeanMetaData override = new JBossSessionBeanMetaData();
override.setBusinessLocals(overrideBusinessLocal);
override.setName("overrideName");
//Original
BusinessLocalsMetaData originalBusinessLocal = new BusinessLocalsMetaData();
originalBusinessLocal.add("original1");
originalBusinessLocal.add("original2");
originalBusinessLocal.add("original3");
JBossSessionBeanMetaData original = new JBossSessionBeanMetaData();
original.setBusinessLocals(originalBusinessLocal);
// Merged
JBossSessionBeanMetaData merged = new JBossSessionBeanMetaData();
merged.merge(override, original);
BusinessLocalsMetaData businessLocals = merged.getBusinessLocals();
assertNotNull(businessLocals);
assertEquals(3, businessLocals.size());
assertTrue(businessLocals.contains("override1"));
assertTrue(businessLocals.contains("override2"));
assertTrue(businessLocals.contains("override3"));
}