public void testMultiRecipients() throws Exception {
Mailbox.clearAll();
sendBody("direct:a", "Camel does really rock");
Mailbox inbox = Mailbox.get("camel|pipes@riders.org");
Message msg = inbox.get(0);
assertEquals("you@apache.org", msg.getFrom()[0].toString());
assertEquals("camel|pipes@riders.org", msg.getRecipients(Message.RecipientType.TO)[0].toString());
assertEquals("easy@riders.org", msg.getRecipients(Message.RecipientType.TO)[1].toString());
inbox = Mailbox.get("easy@riders.org");
msg = inbox.get(0);
assertEquals("you@apache.org", msg.getFrom()[0].toString());
assertEquals("camel|pipes@riders.org", msg.getRecipients(Message.RecipientType.TO)[0].toString());
assertEquals("easy@riders.org", msg.getRecipients(Message.RecipientType.TO)[1].toString());
}