// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
BTCETrade[] BTCETrades = mapper.readValue(is, BTCETrade[].class);
Trades trades = BTCEAdapters.adaptTrades(BTCETrades);
// System.out.println(trades.getTrades().size());
assertThat(trades.getTrades().size() == 150);
// verify all fields filled
assertThat(trades.getTrades().get(0).getPrice().doubleValue()).isEqualTo(13.07);
assertThat(trades.getTrades().get(0).getType()).isEqualTo(OrderType.ASK);
assertThat(trades.getTrades().get(0).getTradableAmount().doubleValue()).isEqualTo(1.0);
assertThat(trades.getTrades().get(0).getCurrencyPair()).isEqualTo(CurrencyPair.BTC_USD);
// assertThat("transactionCurrency should be PLN",
// trades.getTrades().get(0).getTransactionCurrency().equals("PLN"));
assertThat(DateUtils.toUTCString(trades.getTrades().get(0).getTimestamp())).isEqualTo("2012-12-22 08:06:14 GMT");
}