final ObjectMapper mapper = new ObjectMapper();
final JavaType tickersType = mapper.getTypeFactory().constructParametricType(MintPalBaseResponse.class, mapper.getTypeFactory().constructCollectionType(List.class, MintPalPublicTrade.class));
final MintPalBaseResponse<List<MintPalPublicTrade>> tradesResponse = mapper.readValue(is, tickersType);
final List<MintPalPublicTrade> trades = tradesResponse.getData();
final Trades adaptedTrades = MintPalAdapters.adaptPublicTrades(CurrencyPair.LTC_BTC, trades);
assertThat(adaptedTrades.getlastID()).isEqualTo(0);
assertThat(adaptedTrades.getTradeSortType()).isEqualTo(TradeSortType.SortByTimestamp);
final List<Trade> tradesList = adaptedTrades.getTrades();
assertThat(tradesList).hasSize(2);
final Trade trade = tradesList.get(0);
assertThat(trade.getTimestamp().getTime()).isEqualTo(1405056569000L);
assertThat(trade.getType()).isEqualTo(OrderType.ASK);