@Override
    public void filterProducer(Exchange exchange, WebServiceMessage response) {
        if (exchange != null) {
            processHeaderAndAttachments(exchange.getIn(AttachmentMessage.class), response);
        }
    }
@Test
    public void producerWithAttachment() throws Exception {
        exchange.getIn(AttachmentMessage.class).addAttachment("testAttachment",
                new DataHandler(this.getClass().getResource("/sampleAttachment.txt")));

        filter.filterProducer(exchange, message);

        Assertions.assertThat(message.getAttachments()).isNotNull().isNotEmpty();
        Assertions.assertThat(message.getAttachment("testAttachment")).isNotNull();
    }