assertEquals("message-recipient-info", mps.messageRecipientInfo, mri);
Map channelTable = new HashMap();
Iterator channelsIterator = config.getChannelsIterator();
while (channelsIterator.hasNext()) {
MpsChannelConfiguration channelConfig =
(MpsChannelConfiguration)channelsIterator.next();
channelTable.put(channelConfig.getName(),channelConfig);
}
Iterator channels = mps.channels.iterator();
while (channels.hasNext()) {
ConfigValueChannel channel = (ConfigValueChannel) channels.next();
MpsChannelConfiguration channelConfig =
(MpsChannelConfiguration) channelTable.get(channel.name);
Map attrs = channelConfig.getArguments();
assertNotNull("Channel Config for " + channel.name , channelConfig);
assertEquals(channel.name, channelConfig.getName());
assertEquals(channel.channelClass, channelConfig.getClassName());
if (channel instanceof ConfigValueChannelSms) {
ConfigValueChannelSms sms = (ConfigValueChannelSms) channel;
assertEquals(sms.address,
attrs.get(LogicaSMSChannelAdapter.ADDRESS));
assertEquals(valueOf(sms.port),