InOut me = dest.createInOutExchange();
me.getInMessage().setContent(new StringSource(
"<echo xmlns:xop='http://www.w3.org/2004/08/xop/include'><msg>"
+ "hello world</msg><binary><xop:Include href='binary'/></binary></echo>"));
me.getInMessage().addAttachment("binary", new DataHandler(
new ByteArrayDataSource(new byte[] {0, 1, 2}, "image/jpg")));
client.sendSync(me);
assertNotNull(me.getOutMessage());
assertEquals(1, me.getOutMessage().getAttachmentNames().size());
DataHandler dh = me.getOutMessage().getAttachment(
(String) me.getOutMessage().getAttachmentNames().iterator().next());