// Read in the JSON from the example resources
InputStream is = BTCETradesJSONTest.class.getResourceAsStream("/v3/marketdata/example-trades-data.json");
// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
BTCETradesWrapper bTCETradesWrapper = mapper.readValue(is, BTCETradesWrapper.class);
Trades trades = BTCEAdapters.adaptTrades(bTCETradesWrapper.getTrades(com.xeiam.xchange.btce.v3.BTCEUtils.getPair(CurrencyPair.BTC_USD)), CurrencyPair.BTC_USD);
// System.out.println(trades.getTrades().size());
assertThat(trades.getTrades().size() == 150);
// verify all fields filled
assertThat(trades.getTrades().get(0).getPrice().toString()).isEqualTo("760.999");