ObjectMapper mapper = new ObjectMapper();
BTCETradeHistoryReturn btceTradeHistory = mapper.readValue(is, BTCETradeHistoryReturn.class);
UserTrades trades = BTCEAdapters.adaptTradeHistory(btceTradeHistory.getReturnValue());
List<UserTrade> tradeList = trades.getUserTrades();
UserTrade lastTrade = tradeList.get(tradeList.size() - 1);
assertThat(lastTrade.getId()).isEqualTo("7258275");
assertThat(lastTrade.getType()).isEqualTo(OrderType.ASK);
assertThat(lastTrade.getPrice().toString()).isEqualTo("125.75");
assertThat(lastTrade.getTimestamp().getTime()).isEqualTo(1378194574000L);
assertThat(DateUtils.toUTCString(lastTrade.getTimestamp())).isEqualTo("2013-09-03 07:49:34 GMT");
assertThat(lastTrade.getFeeAmount()).isNull();
}