// Read in the JSON from the example resources
InputStream is = CryptsyAdapterTest.class.getResourceAsStream("/trade/Sample_AllMyTrades_Data.json");
// 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);