@Test
public void simpleMockedWssMultipart2() 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=\"document1.pdf\" sessionKey=\"part_file1\" mimeType=\"application/pdf\"/>"
				+ "<part type=\"file\" name=\"document2.pdf\" sessionKey=\"part_file2\" mimeType=\"application/pdf\"/>"
				+ "</parts>";
		pls.put("multipartXml", xmlMultipart);
		pls.put("part_file1", new ByteArrayInputStream("<dummy pdf file/>".getBytes()));
		pls.put("part_file2", new ByteArrayInputStream("<dummy pdf file/>".getBytes()));
		sender.setMultipartXmlSessionKey("multipartXml");
		sender.configure();
		sender.open();
		String result = sender.sendMessage(input, pls).asString();;
		assertEquals(getFile("simpleMockedWssMultipart2.txt"), result.trim());
	} catch (SenderException e) {
		throw e.getCause();
	}
}