// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
CryptsyTradeHistoryReturn cryptsyTradeHistory = mapper.readValue(is, CryptsyTradeHistoryReturn.class);
UserTrades adaptedTrades = CryptsyAdapters.adaptTradeHistory(cryptsyTradeHistory);
UserTrade trade = adaptedTrades.getUserTrades().get(0);
assertEquals(trade.getCurrencyPair(), CurrencyPair.LTC_BTC);
assertEquals(trade.getId(), "9982231");
assertEquals(trade.getOrderId(), "23569349");
assertEquals(trade.getType(), OrderType.BID);
assertEquals(trade.getTradableAmount(), new BigDecimal("0.15949550"));