@Test
public void testAdaptTicker() throws JSONException, IOException {
JSONObject jsonObject = new JSONObject(IOUtils.toString(getClass().getResource("ticker.json"), Charsets.UTF_8));
Ticker ticker = BTCChinaJSONObjectAdapters.adaptTicker(jsonObject);
assertEquals(new BigDecimal("90604.96"), ticker.getVolume());
assertEquals(new BigDecimal("25.96"), ticker.getLast());
assertEquals(new BigDecimal("26.1"), ticker.getAsk());
assertEquals(new BigDecimal("25.94"), ticker.getBid());
assertEquals(new BigDecimal("27.41"), ticker.getHigh());
assertEquals(1411924391000L, ticker.getTimestamp().getTime());
assertEquals(new BigDecimal("25.8"), ticker.getLow());
assertEquals(CurrencyPair.LTC_CNY, ticker.getCurrencyPair());
}