replay(soapResponse, soapEnvelope, soapBody, soapHeader);
Message responseMessage = soapMessageConverter.convertInbound(soapResponse, new WebServiceEndpointConfiguration());
Assert.assertTrue(SoapMessage.class.isInstance(responseMessage));
SoapMessage soapResponseMessage = (SoapMessage) responseMessage;
Assert.assertEquals(soapResponseMessage.getPayload(), "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" + responsePayload);
Assert.assertEquals(soapResponseMessage.getSoapAction(), "soapOperation");
Assert.assertEquals(soapResponseMessage.getHeaderData().size(), 0L);
List<SoapAttachment> attachments = soapResponseMessage.getAttachments();
Assert.assertEquals(attachments.size(), 1L);
Assert.assertEquals(attachments.get(0).getContentId(), attachment.getContentId());
Assert.assertEquals(attachments.get(0).getContentType(), attachment.getContentType());
Assert.assertEquals(FileUtils.readToString(attachments.get(0).getInputStream()), attachment.getContent());