// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
BitstampTicker bitstampTicker = mapper.readValue(is, BitstampTicker.class);
Ticker ticker = BitstampAdapters.adaptTicker(bitstampTicker, CurrencyPair.BTC_USD);
assertThat(ticker.getLast().toString()).isEqualTo("134.89");
assertThat(ticker.getBid().toString()).isEqualTo("134.89");
assertThat(ticker.getAsk().toString()).isEqualTo("134.92");
assertThat(ticker.getVolume()).isEqualTo(new BigDecimal("21982.44926674"));
SimpleDateFormat f = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
f.setTimeZone(TimeZone.getTimeZone("UTC"));
String dateString = f.format(ticker.getTimestamp());
assertThat(dateString).isEqualTo("2013-10-14 21:45:33");
}