String data = "1,B2,Keira,Knightley,ISIN,XX23456789,BUY,Share,400.25,EUR,14-01-2009\r\n";
template.sendBody("direct:out", data);
assertMockEndpointsSatisfied();
Order order = getMockEndpoint("mock:out").getReceivedExchanges().get(0).getIn().getBody(Order.class);
assertEquals(1, order.getOrderNr());
assertEquals("BUY", order.getOrderType());
assertEquals("B2", order.getClientNr());
assertEquals("Keira", order.getFirstName());
assertEquals("Knightley", order.getLastName());
assertEquals(new BigDecimal("400.25"), order.getAmount());
assertEquals("ISIN", order.getInstrumentCode());
assertEquals("XX23456789", order.getInstrumentNumber());
assertEquals("Share", order.getInstrumentType());
assertEquals("EUR", order.getCurrency());
}