@Test
public void testSendAttachment() throws Exception
{
FunctionalTestComponent ftc = getFunctionalTestComponent("testComponent");
assertNotNull(ftc);
ftc.setEventCallback(new EventCallback(){
public void eventReceived(MuleEventContext context, Object component) throws Exception
{
assertEquals("application/octet-stream; charset=ISO-8859-1", context.getMessage().getInboundProperty(MuleProperties.CONTENT_TYPE_PROPERTY));
assertEquals("We should have an attachment", 1, context.getMessage().getInboundAttachmentNames().size());
DataHandler dh = context.getMessage().getInboundAttachment("attach1");