public void testAdaptOrders() throws IOException {
BTCChinaGetOrdersResponse response = mapper.readValue(getClass().getResource("dto/trade/response/getOrders-single-market-2-orders.json"), BTCChinaGetOrdersResponse.class);
List<LimitOrder> limitOrders = BTCChinaAdapters.adaptOrders(response.getResult(), null);
assertEquals(2, limitOrders.size());
LimitOrder order = limitOrders.get(0);
assertEquals("13942927", order.getId());
assertEquals(OrderType.BID, order.getType());
assertEquals(new BigDecimal("2000.00"), order.getLimitPrice());
assertEquals(CurrencyPair.BTC_CNY, order.getCurrencyPair());
assertEquals(new BigDecimal("0.00100000"), order.getTradableAmount());
assertEquals(1396255376000L, order.getTimestamp().getTime());
}