ObjectMapper mapper = new ObjectMapper();
Map<Integer, CryptsyPublicMarketData> cryptsyMarketData = CryptsyAdapters.adaptPublicMarketDataMap(mapper.readValue(is, CryptsyPublicMarketDataReturn.class).getReturnValue());
Map<CurrencyPair, Trades> adaptedTradesMap = CryptsyAdapters.adaptPublicTrades(cryptsyMarketData);
Trades adaptedTrades = adaptedTradesMap.get(CurrencyPair.DOGE_LTC);
List<Trade> adaptedTradesList = adaptedTrades.getTrades();
assertThat(adaptedTradesList).hasSize(2);
Trade adaptedTrade = adaptedTradesList.get(1);
assertThat(adaptedTrade.getCurrencyPair()).isEqualTo(CurrencyPair.DOGE_LTC);
assertThat(adaptedTrade.getId()).isEqualTo("47692497");