Object unmarshaledBody = unmarshal.getReceivedExchanges().get(0).getIn().getBody();
assertIsInstanceOf(BuyStocksDocument.class, unmarshaledBody);
}
private BuyStocksDocument createBuyStocksDocument() {
BuyStocksDocument document = BuyStocksDocument.Factory.newInstance();
BuyStocks payload = document.addNewBuyStocks();
Order order = payload.addNewOrder();
order.setSymbol("IBM");
order.setBuyerID("cmueller");
order.setPrice(140.34);
order.setVolume(2000);