// Read in the JSON from the example resources
InputStream is = CryptsyAdapterTest.class.getResourceAsStream("/marketdata/Sample_GetMarket_Data.json");
// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
CryptsyGetMarketsReturn cryptsyTrades = mapper.readValue(is, CryptsyGetMarketsReturn.class);
Ticker adaptedTicker = CryptsyAdapters.adaptTicker(cryptsyTrades, CurrencyPair.WDC_BTC);
assertEquals(adaptedTicker.getCurrencyPair(), CurrencyPair.WDC_BTC);
assertEquals(adaptedTicker.getLast(), new BigDecimal("0.00006187"));