*/
@Test
public void translatesATradeMessage() throws Exception {
String delimitedTrade = "T|B|5.1t|R|EURUSD|1.3124";
Amount fivePointOneThousand = new Amount(5.1 * 1000, new Currency("EUR"));
Rate atEURUSDRate = new Rate(1.3124, EURUSD);
final Trade expected = new Trade(TradeType.BUY, fivePointOneThousand, atEURUSDRate);
TradeTranslator t = new TradeTranslator();
Trade trade = t.translate(delimitedTrade);