Are you sure this is supported by DevKit? I can not find a single integration test in the source code that exercises @InboundAttachments
and @OutboundAttachments
annotations, while @InboundHeaders
and @OutboundHeaders
are both test covered.
Alternatively you can receive the MuleEvent
and access the attachments through it:
@Processor
@Inject
public Object validate(@Payload InputStream in, MuleEvent muleEvent) {