public class ChainedComponentTest extends AbstractSpringTestSupport {
public void testSendingAndReceivingMessagesUsingSpring() throws Exception {
super.testSendingAndReceivingMessagesUsingSpring();
MessageList messageList = getReceivedMessageList();
for (Iterator iter = messageList.getMessages().iterator(); iter.hasNext();) {
NormalizedMessage msg = (NormalizedMessage) iter.next();
assertNotNull(msg.getProperty("prop1"));
assertNotNull(msg.getProperty("prop2"));
}
}