// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
BTCCentralTicker btcCentralTicker = mapper.readValue(is, BTCCentralTicker.class);
Ticker genericTicker = BTCCentralAdapters.adaptTicker(btcCentralTicker, CurrencyPair.BTC_EUR);
assertEquals(genericTicker.getAsk(), new BigDecimal("20.4"));
assertEquals(genericTicker.getBid(), new BigDecimal("20.1"));
assertEquals(genericTicker.getHigh(), new BigDecimal("20.74"));
assertEquals(genericTicker.getLow(), new BigDecimal("20.2"));
assertEquals(genericTicker.getLast(), new BigDecimal("20.2"));
assertEquals(genericTicker.getVolume(), new BigDecimal("148.80193218"));
}