CryptoTradeTrades tradeHistory = mapper.readValue(is, CryptoTradeTrades.class);
List<CryptoTradeTrade> tradeList = tradeHistory.getTrades();
assertThat(tradeList.size()).isEqualTo(2);
CryptoTradeTrade trade = tradeList.get(0);
assertThat(trade.getId()).isEqualTo(17);
assertThat(trade.getTimestamp()).isEqualTo(1370965122);
assertThat(trade.getCurrencyPair()).isEqualTo(CurrencyPair.BTC_USD);
assertThat(trade.getType()).isEqualTo(CryptoTradeOrderType.Sell);
assertThat(trade.getAmount()).isEqualTo("0.1");
assertThat(trade.getRate()).isEqualTo("128");
assertThat(trade.getMyOrder()).isEqualTo(1);
}