@Test
public void simpleMockedWssMtom() throws Throwable {

	WebServiceSender sender = getSender();
	Message input = new Message("<xml>input</xml>");
	try {
		IPipeLineSession pls = new PipeLineSessionBase(session);
		sender.setMethodType("POST");
		sender.setParamsInUrl(false);
		sender.setInputMessageParam("request");
		String xmlMultipart = "<parts><part type=\"file\" name=\"document.pdf\" "
				+ "sessionKey=\"part_file\" size=\"72833\" "
				+ "mimeType=\"application/pdf\"/></parts>";
		pls.put("multipartXml", xmlMultipart);
		pls.put("part_file", new ByteArrayInputStream("<dummy xml file/>".getBytes()));
		sender.setMtomEnabled(true);
		sender.setMultipartXmlSessionKey("multipartXml");
		sender.configure();
		sender.open();
		String result = sender.sendMessage(input, pls).asString();
		assertEquals(getFile("simpleMockedWssMtom.txt"), result.trim());
	} catch (SenderException e) {
		throw e.getCause();
	}
}