multipart.addBodyPart(mimePart);
message.setContent(multipart);
message.setHeader("Content-Type", multipart.getContentType());
message.saveChanges();
ByteArrayOutputStream baos = new ByteArrayOutputStream();
message.writeTo(baos);
log.info(baos.toString());
SoapMarshaler marshaler = new SoapMarshaler(true);
SoapMessage msg = marshaler.createReader().read(new ByteArrayInputStream(baos.toByteArray()), multipart.getContentType());
assertTrue(msg.getSource().equals(SoapReader.EMPTY_CONTENT));