@Test
public void testGetOrderHistoryOnlyNeededElements() throws IOException {

  Source requestPayload = new StringSource(
      "<ns1:getOrderHistoryRequest xmlns:ns1=\"http://codenotfound.com/types/orderhistory\">"
          + "<ns1:userId>def456</ns1:userId>" + "</ns1:getOrderHistoryRequest>");
  Source responsePayload = new StringSource(
      "<ns1:getOrderHistoryResponse xmlns:ns1=\"http://codenotfound.com/types/orderhistory\">"
          + "<ns1:orderHistory>" + "<ns1:orderList>"
          + "<ns1:order><ns1:orderId>order4</ns1:orderId><ns1:orderName>order-name-1</ns1:orderName></ns1:order>"
          + "<ns1:order><ns1:orderId>order5</ns1:orderId><ns1:orderName>order-name-2</ns1:orderName></ns1:order>"
          + "<ns1:order><ns1:orderId>order6</ns1:orderId><ns1:orderName>order-name-3</ns1:orderName></ns1:order>"
          + "</ns1:orderList>" + "</ns1:orderHistory>" + "</ns1:getOrderHistoryResponse>");
  mockWebServiceServer.expect(payload(requestPayload)).andRespond(withPayload(responsePayload));
  OrderHistory orderHistory = orderHistoryClient.getOrderHistory("def456");
  assertThat(orderHistory.getOrders().get(2).getOrderId()).isEqualTo("order6");
  mockWebServiceServer.verify();
}