// Read in the JSON from the example resources
InputStream is = CryptsyAdapterTest.class.getResourceAsStream("/marketdata/Sample_MarketTrades_Data.json");
// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
CryptsyMarketTradesReturn cryptsyTrades = mapper.readValue(is, CryptsyMarketTradesReturn.class);
Trades adaptedTrades = CryptsyAdapters.adaptTrades(cryptsyTrades, CurrencyPair.WDC_BTC);
assertEquals(adaptedTrades.getTrades().size(), cryptsyTrades.getReturnValue().size());
}