ProcessOrderRequest request = new ProcessOrderRequest(order);
order.setId(123L);
order.setShipTo("Skeagh Bridge");
order.setLineItems(lineItems);
LineItem lineItem;
lineItem = new LineItem();
lineItems.add(lineItem);
lineItem.setId(456L);
lineItem.setName("item1");
lineItem.setPrice(10.99f);
lineItem = new LineItem();
lineItems.add(lineItem);
lineItem.setId(890L);
lineItem.setName("item2");
lineItem.setPrice(12.11f);
lineItem = new LineItem();
lineItems.add(lineItem);
lineItem.setId(321L);
lineItem.setName("item3");
lineItem.setPrice(76.34f);
params.put("processOrder", request);
String message = mbean.buildRequest(wsdlFile.toURI().toString(), "processOrder", null, params, properties, null, null);
assertTrue("Generated SOAP message not as expected. See orderprocessing/expected_01_JBESB-1329.xml. Generated message: \n" + message, compareCharStreams(getClass().getResourceAsStream("orderprocessing/expected_01_JBESB-1329.xml"), new ByteArrayInputStream(message.getBytes())));
}