// 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");
assertThat(trades.getTrades().get(0).getType()).isEqualTo(OrderType.ASK);
assertThat(trades.getTrades().get(0).getTradableAmount().toString()).isEqualTo("0.028354");
assertThat(trades.getTrades().get(0).getCurrencyPair()).isEqualTo(CurrencyPair.BTC_USD);
// assertThat("transactionCurrency should be PLN",
// trades.getTrades().get(0).getTransactionCurrency().equals("PLN"));
// System.out.println(DateUtils.toUTCString(trades.getTrades().get(0).getTimestamp()));
assertThat(DateUtils.toUTCString(trades.getTrades().get(0).getTimestamp())).isEqualTo("2013-11-23 11:10:04 GMT");
}