}
public void testBusinessRemotes()
{
// Override
BusinessRemotesMetaData overrideBusinessRemotes = new BusinessRemotesMetaData();
overrideBusinessRemotes.add("override1");
overrideBusinessRemotes.add("override2");
overrideBusinessRemotes.add("override3");
JBossSessionBeanMetaData override = new JBossSessionBeanMetaData();
override.setBusinessRemotes(overrideBusinessRemotes);
override.setName("overrideName");
// Original
BusinessRemotesMetaData originalBusinessRemotes = new BusinessRemotesMetaData();
originalBusinessRemotes.add("original1");
originalBusinessRemotes.add("original2");
originalBusinessRemotes.add("original3");
JBossSessionBeanMetaData original = new JBossSessionBeanMetaData();
original.setBusinessRemotes(originalBusinessRemotes);
// Merged
JBossSessionBeanMetaData merged = new JBossSessionBeanMetaData();
merged.merge(override, original);
BusinessRemotesMetaData businessRemotes = merged.getBusinessRemotes();
assertNotNull(businessRemotes);
assertEquals(3, businessRemotes.size());
assertTrue(businessRemotes.contains("override1"));
assertTrue(businessRemotes.contains("override2"));
assertTrue(businessRemotes.contains("override3"));
}