// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
CryptoTradeTrades tradeHistory = mapper.readValue(is, CryptoTradeTrades.class);
UserTrades trades = CryptoTradeAdapters.adaptTrades(tradeHistory);
assertThat(trades.getlastID()).isEqualTo(17);
assertThat(trades.getTrades()).hasSize(2);
UserTrade trade = trades.getUserTrades().get(1);
assertThat(trade.getPrice()).isEqualTo("128");
assertThat(trade.getType()).isEqualTo(OrderType.ASK);
assertThat(trade.getTimestamp()).isEqualTo(new Date(1370965122));
assertThat(trade.getTradableAmount()).isEqualTo("0.1");
assertThat(trade.getId()).isEqualTo("17");