public void testListAttachmentsWithOptional() throws Exception
{
//clear baz attachment
Map<String, DataHandler> attachments = new HashMap<String, DataHandler>();
attachments.put("foo", new DataHandler(new StringDataSource("fooValue")));
attachments.put("bar", new DataHandler(new StringDataSource("barValue")));
muleMessage = createMessage(null, attachments);
MuleClient client = new MuleClient(muleContext);
MuleMessage message = client.send("vm://attachmentsListOptional", muleMessage);
assertNotNull("return message from MuleClient.send() should not be null", message);